Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : POKEB.ASM

 
Output of file : POKEB.ASM contained in archive : JAZLIB.ZIP
Comment *
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³pokeb ³
³Poke a byte into memory ³
³ ³
³Synopsis ³
³ int seg = 0xb800,ofs = 0; ³
³ ³
³ pokeb(seg,ofs,'A'); (write the letter "A" to the first byte ³
³ of screen memory) ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*

;=============================================================================
; Data
;=============================================================================

DGROUP group _DATA
_DATA segment word public 'DATA'
assume ds:DGROUP

; Your Data goes here . . .

_DATA ends

;=============================================================================
; Code
;=============================================================================

assume cs:_text
_text segment public byte 'code'
PUBLIC _pokeb

_pokeb proc near

push bp ; save base of stack
mov bp,sp ; establish stack frame

push di ; save MS-C's Register vars
push es

mov ax,[bp].8 ; get value to poke
mov di,[bp].6 ; get offset
push [bp].4 ; segment
pop es
stosb

pop es ; restore data and extra segs
pop di ; Restore MS-C's Register vars

mov sp,bp ; restore stack pointer
pop bp ; and base of stack
ret ; return to caller

_pokeb endp
_text ends
end


  3 Responses to “Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : POKEB.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/