::SHE+ILA:: Kernel ASM Source [7] -- Example Buf Handler

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

Prompt

A beautiful purple-haired ragdoll wearing a long purple velvet ankle-length dress with flouncy sleeves and purple suede high heels. She is playing with a pocket calculator.

More about ::SHE+ILA:: Kernel ASM Source [7] -- Example Buf Handler

// Example Buf Handler code
{_ // Start ASM block
FLENGTH: _PROC
_ASSERT ES:EBX,$EB; // Debug check
// ES points to the page frame, EBX points to the buffer within the page frame
_MOV AL,ES:[EBX.bufflags]; // Get buf flags
_OR AL,AL; // Test the near/far bit
_JS LFAR
// It's near so get the length using NearBufHdr
_MOVZX AX,ES:[EBX.veclen16]
_RET; // And return it to caller
LFAR: // It's far so get the length using FarBufHdr
_MOV EAX,ES:[EBX.veclen32]
_RET; // And return it
_} // End ASM block
// Easy dat :)

Comments


Loading Dream Comments...

Discover more dreams from this artist