Files
286Racer/SOURCE/LINK.ASM
Philip Smart 7daa2da009 First push
2020-03-02 12:12:12 +00:00

47 lines
530 B
NASM
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
ORG 0000H
MAIN: MOV AX,0FC00H
MOV DS,AX
X3: MOV DX,0C02H
X4: IN AL,DX
TEST AL,8
JNZ X4
MOV DX,0C00H
IN AL,DX
CMP AL,1
JE Z0
CMP AL,2
JE Z1
CMP AL,3
JE Z2
JMP X3
Z0: MOV AX,0000
MOV DS,AX
MOV BX,0000
ZD1: MOV AL,DS:[BX]
MOV DX,0C00H
OUT DX,AL
JMP ZD1
Z1: MOV AX,0000
MOV DS,AX
MOV BX,0000
ZD2: MOV AL,DS:[BX]
MOV DX,0C00H
OUT DX,AL
JMP ZD2
Z2: MOV AX,0000
MOV DS,AX
MOV BX,0000
ZD3: MOV AL,55H
MOV DS:[BX],AL
JMP ZD3
ORG 3FF0H
JMP MAIN
ORG 3FFFH