2020-06-13 20:06:51 -04:00
|
|
|
H@ ORG !
|
2020-06-13 16:21:56 -04:00
|
|
|
JMPs, L1 FWRs ( start )
|
2020-06-13 15:35:16 -04:00
|
|
|
L2 ( msg ) BSET ," Hello World!" 0 A,
|
|
|
|
L1 FSET ( start )
|
2020-06-13 17:58:42 -04:00
|
|
|
SI L2 @ ( msg ) MOVxi, AH 0x0e MOVri, ( print char )
|
2020-06-13 15:35:16 -04:00
|
|
|
L1 BSET ( loop ) LODSB, AL AL ORrr, ( end of str? )
|
2020-06-13 16:21:56 -04:00
|
|
|
JZ, L2 FWRs ( next ) 0x10 INT, ( print char )
|
|
|
|
JMPs, L1 ( loop ) BWR
|
2020-06-13 15:35:16 -04:00
|
|
|
L2 FSET ( next ) AH 0 MOVri, 0x16 INT, ( read kbd )
|
|
|
|
AH 0x0e MOVri, 0x10 INT, ( spit read char ) HLT, ( done )
|