::SHE+ILA:: Kernel ASM Source [2]

104
0
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • DDG Model
    Z-Image Turbo
  • Access
    Public
  • Created
    2w ago
  • Try

Prompt

The face of a beautiful purple-haired woman in the centre, linked to a number of alternate purple and green circles around it.

More about ::SHE+ILA:: Kernel ASM Source [2]

// Continued from previous drawing
gdtaddr: Descriptor (0),
Descriptor (sysgdt),
Descriptor (sysidt),
Descriptor (DSaddr),
Descriptor ($B800:0000), // VGA text screen;
Descriptor (mystack),
Descriptor (mycode),
Descriptor (bios);
sysidt: 256 # IntGate (0, zeroslct, 3);
{_ // Now fill in the linear INT vectors
_MOV SI, 0;
_MOV DS, 0;
_MOV DI, sysidt;
_MOV ES, systidtseg;
_MOV CX, 256; // Do for each intvec
label: _MOV AX, [SI+2]; // Get an intvec seg;
_MUL 16; // Shift it 4 to the left
_ADD AX, [SI]; // Add the intvec offset
_MOV ES[DI],AX; // Write linear to IDT
_MOV ES[DI+2],DL; // 3 byte linear addr
_ADD SI,4; // Next intvec
_ADD DI, 8; // Next IDT entry
_LOOP label; // Loop round to the next one
_}; // End ASM block
mystack: 1024#_DW 0;
// **** To be continued :) ****

Comments


Loading Dream Comments...

Discover more dreams from this artist