home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDWARE / ROM2.ZIP / BOOT.ASM next >
Encoding:
Assembly Source File  |  1989-12-18  |  1.0 KB  |  31 lines

  1. ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  2. ;_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT
  3. ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  4. code_seg        segment byte public 'code'
  5.         assume  cs:code_seg
  6.  
  7.         public  _BOOT
  8. _BOOT       proc    near
  9.         push    bp
  10.         mov     bp,sp
  11.         mov     cx,[bp+4]
  12.         cmp     cx,0            ;0 = cold boot , 1 = warm boot
  13.         jz      coldboot
  14.         mov     bx,1234h
  15.         jmp     short put_value
  16. coldboot:
  17.         mov     bx,7F7Fh
  18. put_value:
  19.         mov     ax,40h
  20.         mov     ds,ax
  21.         mov     ds:72h,bx
  22.         db      0EAh,00h,00h,0FFh,0FFh  ;this is code for jmp 0F00h:0000h
  23. _BOOT       endp
  24.  
  25. code_seg    ends
  26. ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  27. ;_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS
  28. ;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  29.  
  30.     end
  31.