Changeset 214 for trunk/bootcode
- Timestamp:
- Nov 9, 2017, 11:25:43 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/bootcode/setup/main.asm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/setup/main.asm
r162 r214 1007 1007 ; If AX = ABABh -> Thingie will not wait... 1008 1008 SETUP_ShowErrorBox Proc Near Uses ax bx cx 1009 push ax 1009 push word ptr [TextColorFore] ; Save current color 1010 push ax 1010 1011 push cx 1011 call VideoIO_Color1012 call GetLenOfString ; CX - Len of Error Message1013 add cl, 4 ; Adjust to include Space and Frame1014 push cx1015 mov bx, 0D28h1016 shr cl, 11017 sub bl, cl1018 pop cx1019 mov dh, 0Fh1020 mov dl, bl1021 add dl, cl1022 dec dl1023 call VideoIO_MakeWindow1012 call VideoIO_Color 1013 call GetLenOfString ; CX - Len of Error Message 1014 add cl, 4 ; Adjust to include Space and Frame 1015 push cx 1016 mov bx, 0D28h 1017 shr cl, 1 1018 sub bl, cl 1019 pop cx 1020 mov dh, 0Fh 1021 mov dl, bl 1022 add dl, cl 1023 dec dl 1024 call VideoIO_MakeWindow 1024 1025 pop cx 1025 1026 mov ch, 0Fh … … 1030 1031 call VideoIO_Locate 1031 1032 call VideoIO_Print 1032 pop ax 1033 cmp ax, 0ABABh 1034 je SSEB_NoWait 1035 mov ah, 0 1036 int 16h ; Waits for key stroke 1037 SSEB_NoWait: 1038 ret 1033 pop ax 1034 cmp ax, 0ABABh ; Wait for key or not 1035 je SSEB_NoWait 1036 mov ah, 0 1037 int 16h ; Waits for key stroke 1038 SSEB_NoWait: 1039 pop word ptr [TextColorFore] 1040 ret ; Restore previous color 1039 1041 SETUP_ShowErrorBox EndP 1040 1042
Note:
See TracChangeset
for help on using the changeset viewer.
