home *** CD-ROM | disk | FTP | other *** search
- ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
- ;_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT_SEGMENT
- ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- code_seg segment byte public 'code'
- assume cs:code_seg
-
- public _BOOT
- _BOOT proc near
- push bp
- mov bp,sp
- mov cx,[bp+4]
- cmp cx,0 ;0 = cold boot , 1 = warm boot
- jz coldboot
- mov bx,1234h
- jmp short put_value
- coldboot:
- mov bx,7F7Fh
- put_value:
- mov ax,40h
- mov ds,ax
- mov ds:72h,bx
- db 0EAh,00h,00h,0FFh,0FFh ;this is code for jmp 0F00h:0000h
- _BOOT endp
-
- code_seg ends
- ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
- ;_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS_ENDS
- ;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
-
- end
-