This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.include "m168def.inc" | |
; start defines | |
.def counter = R16 ; number of array values | |
.def first_v = R17 ; first value | |
.def second_v = R18 ; second value | |
.def temp = R19 ; temporary value | |
.def suit_num = R20 ; suitable numbers | |
; end defines | |
.dseg ; start segment of data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.include "m16def.inc" | |
.def shift = r19 ; start defines | |
.def temp = r20 | |
.cseg ; start segment of code | |
.org 0 | |
argv: .db 62, 3, 251, 50; arguments: A B C D | |
ldi ZH, high(argv) ; pointer to arguments | |
ldi ZL, low(argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
qemu-system-x86_64 \ | |
-drive if=pflash,format=raw,readonly=off,file=OVMF.fd \ | |
-drive format=raw,file=fat:rw:hd \ | |
-net none \ | |
-global isa-debugcon.iobase=0x402 \ | |
-debugcon file:debug.log`` & | |
tail -f debug.log |