2023-03-09 06:02:41 +00:00
|
|
|
.ORG 0x84 ; INT 21
|
|
|
|
DW 0xFFFF ; Code Segment
|
|
|
|
DW PRINT_INT_HANDLE ; Program Counter
|
|
|
|
|
2023-03-08 07:26:28 +00:00
|
|
|
ORG 0x100
|
2023-03-09 06:02:41 +00:00
|
|
|
mov sp,#STACK
|
2023-03-03 19:36:28 +00:00
|
|
|
INCLUDE brainfuck_interpreter_v0.asm
|
|
|
|
|
2023-03-09 06:02:41 +00:00
|
|
|
PRINT_INT_HANDLE:
|
|
|
|
push AX
|
|
|
|
MOV AL,DL
|
|
|
|
out byte #0xA5
|
|
|
|
POP AX
|
|
|
|
iret
|
|
|
|
|
|
|
|
.BLKB 200
|
|
|
|
STACK:
|
|
|
|
|
2023-03-03 19:36:28 +00:00
|
|
|
prog:
|
|
|
|
INCLUDE hello_9086.bf.asm
|
2023-03-08 07:26:28 +00:00
|
|
|
|
|
|
|
.ORG 0xFFF0
|
|
|
|
MOV AX,#0x0100
|
|
|
|
JMP AX
|