schnarf283
12-15-2001, 10:53 AM
les di, video_buffer
mov al, byte ptr color
mov ah, al
mov cx, 320*200/2
rep stosw
That's code to fill the screen, video buffer is a pointer to 0xa000. It works, but I don't understand what les, rep, and stosw do.
------------------
Specs:
Computer 1
------------
PII 450mHz
128 MB SDRAM
14.4 and 75.5 GB 7200 RPM Hard Drives
Riva TNT w/ 16 MB Video RAM
Windows 98/Windows 2000
Computer 2
------------
PI 200mHz
32 MB SDRAM
3 GB 2400 RPM Hard Drive
Matrox Something or Other
Debian 2.2r4, Kernel 2.4.16
mov al, byte ptr color
mov ah, al
mov cx, 320*200/2
rep stosw
That's code to fill the screen, video buffer is a pointer to 0xa000. It works, but I don't understand what les, rep, and stosw do.
------------------
Specs:
Computer 1
------------
PII 450mHz
128 MB SDRAM
14.4 and 75.5 GB 7200 RPM Hard Drives
Riva TNT w/ 16 MB Video RAM
Windows 98/Windows 2000
Computer 2
------------
PI 200mHz
32 MB SDRAM
3 GB 2400 RPM Hard Drive
Matrox Something or Other
Debian 2.2r4, Kernel 2.4.16