Category : Files from Magazines
Archive   : MSJV7_4.ZIP
Filename : INIT16.ASM

 
Output of file : INIT16.ASM contained in archive : MSJV7_4.ZIP
main:
sub ax,ax // zero out register
mov WORD PTR [lIndex + 2], ax // initialize lIndex to 0
mov WORD PTR [lIndex + 0], ax
loop:
mov ax, WORD PTR [lIndex + 0] // load lIndex in DX:AX
mov dx, WORD PTR [lIndex + 2]
add ax, OFFSET chArray // add array offset address
adc dx, 0 // carry into high word
mov cx, 0x0C // shift high word 12 bits
shl dx, cl
add dx, SEG chArray // add in the array segment
mov es, dx // mov DX:AX to ES:BX
mov bx, ax
mov BYTE PTR es:[bx], 0x55 // store the initialization value
add WORD PTR [lIndex + 0], 1 // increment the lIndex offset
adc WORD PTR [lIndex + 2], 0 // carry into the lIndex segment
cmp WORD PTR [lIndex + 2], 4 // check if at maximum
jb loop // loop if not

xor ax,ax // return
ret


  3 Responses to “Category : Files from Magazines
Archive   : MSJV7_4.ZIP
Filename : INIT16.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/