mmruzek
Experienced Member
Hi, I am working on a program for loading into an 8K ROM for the U29 socket on the IBM 5150 PC and PC-Retro. The ultimate goal is loading Palo Alto Tiny Basic from ROM and having it run using BIOS interrupts only (No DOS). I have been having problems using INT 10 Service 0E, which is video Teletype Output Mode (Print a character to the screen and advance the cursor). I finally decided it was best to write a short program to test the BIOS Interrupt directly. This program is supposed to write characters X, Y and Z on the screen. Then wait for a character from the keyboard and echo to the screen. What happens is the XYZ is not displayed, but the code does wait and echo the keyboard input OK. Does anyone see the problem? This is really aggravating!
MOV BH,00 ;VIDEO PAGE ZERO
MOV AH,00 ;SET VIDEO MODE
MOV AL,07 ;MDA TEXT 80x25
INT 10
MOV AH,0E ;TELETYPE OUTPUT
MOV AL,58 ;CHARACTER X
INT 10
MOV AL,59 ;CHARACTER Y
INT 10
MOV AL,5A ;CHARACTER Z
INT 10 ;
MOV AH,0 ;WAIT FOR KEY & PRINT (B4 00 CD 16 B4 OE CD 10)
INT 16 ;THESE LINES WAIT FOR KEYBOARD INPUT
MOV AH,0E ;& PRINT USING TELETYPE OUTPUT
INT 10 ;BEFORE SYSTEM RETURN
INT 3 ;BREAKPOINT
MOV BH,00 ;VIDEO PAGE ZERO
MOV AH,00 ;SET VIDEO MODE
MOV AL,07 ;MDA TEXT 80x25
INT 10
MOV AH,0E ;TELETYPE OUTPUT
MOV AL,58 ;CHARACTER X
INT 10
MOV AL,59 ;CHARACTER Y
INT 10
MOV AL,5A ;CHARACTER Z
INT 10 ;
MOV AH,0 ;WAIT FOR KEY & PRINT (B4 00 CD 16 B4 OE CD 10)
INT 16 ;THESE LINES WAIT FOR KEYBOARD INPUT
MOV AH,0E ;& PRINT USING TELETYPE OUTPUT
INT 10 ;BEFORE SYSTEM RETURN
INT 3 ;BREAKPOINT