LBAVIEW in 16bit SheilASM (real mode)

79
1
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • DDG Model
    Flux Klein
  • Access
    Public
  • Created
    1d ago
  • Try

Prompt

A beautiful purple-haired woman wearing an ankle-length flouncy-sleeved purple velvet dress and purple suede high heels. She is looking at a PC hard disk through a magnifying glass.

More about LBAVIEW in 16bit SheilASM (real mode)

.bits 16
LBAVIEW: // CX:AX contains LBA
XOR AX,AX; XOR CX,CX; // Start at beginning of disk
next: PUSH CX; PUSH AX; CLD
BX <:: AX
AL <:: CH
AND AL, $0F; OR AL,$E0;
DX <:: $1F6; OUT DX,AL
AL <:: 1
DX <:: $1F2; OUT DX,AL
AL <:: BL
DX <:: $1F3; OUT DX,AL
AL <:: BH
DX <:: $1F4; OUT DX,AL
AL <:: CL;
DX <:: $1F5; OUT DX,AL
AL <:: $20
DX <:: $1F7; OUT DX,AL
try: IN AL,DX; TEST AL,8; JZ try
CX <:: 512; ES <:: $B800; DI <:: 0
AL <:: $3F; // Bright white on cyan
DX <:: $1F0; // IDE Data port
again: INSB; // Get a byte from disk, write to screen
STOSB; // Write colour to the screen
LOOP again; // And repeat for rest of buffer
POP AX; POP CX; // Retrieve current LBA
INC AX; JNZ L2; INC CX; L2: JMP next
Note: this code is as yet untested!

Comments


Loading Dream Comments...

Discover more dreams from this artist