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

 
Output of file : MEMB.ASM contained in archive : JAZLIB.ZIP
Comment *
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³memb.asm ³
³Look at a byte of memory, pass it back to c as the function result. ³
³ ³
³Synopsis: ³
³ int seg = 0x40,ofs = 0x49,screenmode; ³
³ ³
³ screenmode = memb(seg,ofs); ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*

;=============================================================================
; 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 _memb

_memb proc near

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

push ds ; save data and extra segs

push [bp+4] ; get segment address
pop ds
mov bx,[bp+6] ; get offset address
mov bx,[bx]
mov al,bl ; get byte in return parameter
xor ah,ah

pop ds ; restore data and extra segs

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

_memb endp
_text ends
end


  3 Responses to “Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : MEMB.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/