Comments
Loading Dream Comments...
You must be logged in to write a comment - Log In
ArtistA 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.
// 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 :)