Category : BASIC Source Code
Archive   : DOSCQB45.ZIP
Filename : CASEMAP.ASM

 
Output of file : CASEMAP.ASM contained in archive : DOSCQB45.ZIP
;
; Asseembly subprogram for translating some characters
; according to the currenltly loaded MS-DOS country
; dependent information
;
; use: call casemap (char%, seg%, ofs%)
; note: Char% is passed by reference
; Seg% and Ofs% are passed by value
;
; Example of use: Call casemap (char%, seg%, ofs%)
; Parameters: char% Character byte to be translated
; seg% segment of address of MS-DOS translate routine
; ofs% offset of address of MS-DOS translate routine
; Variables (none)
; Module Level
; Declarations: Declare sub getcountry (county as countrytype)
; Declare sub casemap (character%, BYVAL segment%,
; BYVAL offset%)
; Declare function translatecountry$ (a$, country as countrytype)
.model medium
.code
public casemap

casemap proc

; standard entry
push bp
mov bp,sp

; get char% into ax register
mov bx,[bp+10]
mov ax,[bx]

; call the translate function in MS-DOS
call dword ptr [bp+6]

; return translated character to char%
mov bx,[bp+10]
mov [bx],ax

; standard exit, assumes three variables passed
pop bp
ret 6

; end of procedure
casemap endp
end



  3 Responses to “Category : BASIC Source Code
Archive   : DOSCQB45.ZIP
Filename : CASEMAP.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/