::SHE+ILA:: Kernel ASM Source [11] -- FBI INSERT and EXTRACT

249
0
  • Squishy Plushie's avatar Artist
    Squishy Pl...
  • DDG Model
    Kling 3
  • Access
    Public
  • Created
    1mo ago
  • Try

Prompt

A beautiful purple-haired woman wearing a long purple velvet ankle-length dress with flouncy sleeves and purple suede high heels. She is inserting a plushie into a box.

More about ::SHE+ILA:: Kernel ASM Source [11] -- FBI INSERT and EXTRACT

// Here is the FBI (Fundamantal Buffer Interface) Insert (<<) and Extract ([<n>]) kernel routines
// It calls the BALLOC routines on the previous drawing
{_; // Begin ASM block
FINSERT: _PROC; // Insert element EBX at position EDX into Buf header at ESI
// Note: only the 16bit (near) code is yet implemented
// The 32bit (far) code will follow later sometime
_MOV ECX,4; // Make room for the new Dope Vector in the Buf Header
// TO DO: Check EDX is in range of the MaxBufLength and BufLength
_MOV EAX,EDX
_SHL EAX,2; // Each DopeVector is 4 bytes
_ADD EAX, ES:[ESI.#NearBufHdr]; // Get index into Dope Vector in Buf header
_MOV ESI,EAX
_PUSH EBX,ESI
_CALL STRETCH; // Move the existing DopeVector to make a gap for the new entry
_POP ESI,EBX
_MOVD ESI,ES:[EBX]; // Move the new DopeVector into its place
_RET
FEXTRACT: _PROC // TO DO: code this routine :)
_RET; // TO DO: Yes, still to do, come back later, lol :)
_}; // End ASM block
// *** To be continued... :)

Comments


Loading Dream Comments...

Discover more dreams from this artist