home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 4.ddi / ETC / MULTEST.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-12-16  |  881 b   |  38 lines

  1. ; The following assembly language runs through Phar Lap's 386|ASM assembler
  2. ; (1.1r or later, with the -8086 switch) or Microsoft's OS/2 SDK assembler.
  3. ; You could make it work with previous versions of MASM with some 
  4. ; hand-coding using "db 66h"s operand override prefixes.
  5. .386
  6. s segment 'code' use16
  7. assume cs:s
  8. start:    
  9.     mov    cx,65535
  10.         mov     ebx,081h
  11. L:
  12.         mov     eax,0417a000h
  13.         imul    ebx
  14.         cmp     edx,2
  15.         jne     bad
  16.         cmp    eax,0fe7a000h
  17.         jne    bad
  18.         loop    L
  19.     
  20.         mov    dx,offset okmsg 
  21.         jmp    cont
  22.             
  23. bad:    mov    dx,offset badmsg
  24. cont:
  25.     push    cs
  26.     pop    ds
  27.     mov    ah,9
  28.     int    21h            
  29.     mov    ah,4ch  ; Exit.
  30.     int    21h   
  31. badmsg  db    'Oops!  Bad chip!',0dh,0ah,'$'
  32. okmsg    db    'No errors detected.',0dh,0ah,'$'
  33. s     ends
  34. stack    segment    stack use16
  35.     db    50 dup (?)
  36. stack    ends    
  37.     end    start
  38.