2019-10-22 03:38:30 +00:00
|
|
|
cs push \ copy code segment to data segment
|
|
|
|
ds pop
|
2019-10-20 05:05:26 +00:00
|
|
|
|
2019-10-22 03:38:30 +00:00
|
|
|
\ jne not yet working
|
|
|
|
\ :> loop
|
|
|
|
\ cx 3 # mov
|
2019-10-20 18:53:53 +00:00
|
|
|
|
2019-10-22 03:38:30 +00:00
|
|
|
:> msg
|
|
|
|
dx msg mov
|
|
|
|
ah 9 # movb
|
|
|
|
&h21 int
|
2019-10-20 18:53:53 +00:00
|
|
|
|
2019-10-22 03:38:30 +00:00
|
|
|
\ cx dec
|
|
|
|
\ loop jne
|
|
|
|
|
|
|
|
0 .EXIT
|
|
|
|
|
|
|
|
msg <:
|
|
|
|
d" Hello World!$"
|
2019-10-20 18:53:53 +00:00
|
|
|
|