Cls Magic X86 Today
After this, you must manually move the cursor back to the start:
To perform the magic, you simply need to decide between (BIOS interrupts) or raw performance (direct memory access). Both methods reflect the core philosophy of x86: giving the programmer total control over the hardware. cls magic x86
mov ax, 0B800h ; Point to video memory segment mov es, ax xor di, di ; Start at offset 0 mov ax, 0720h ; 07 = White/Black, 20 = Space character mov cx, 2000 ; 80 * 25 = 2000 words rep stosw ; "Magic" happens here: Repeat storing AX into ES:DI Use code with caution. After this, you must manually move the cursor