Category : Assembly Language Source Code
Archive   : JED.ZIP
Filename : VIDORG.SRC

 
Output of file : VIDORG.SRC contained in archive : JED.ZIP
;---------------------------------------------------------------
; VidOrg -- Returns origin segment of video buffer
; Last update 3/8/89
;
; 1 entry point:
;
; VidOrg:
; Caller must pass:
; AL : Code specifying display adapter type
; VidOrg returns the buffer origin segment in AX
;---------------------------------------------------------------

VidOrg PROC
xor AH,AH ; Zero AH
mov DI,AX ; Copy AX (with code in AL) into DI
shl DI,1 ; Multiply code by 2 to act as word index
lea BX,OriginTbl ; Load address of origin table into BX
mov AX,[BX+DI] ; Index into table using code as index
ret ; Done; go home!
VidOrg ENDP

  3 Responses to “Category : Assembly Language Source Code
Archive   : JED.ZIP
Filename : VIDORG.SRC

  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/