Fixed hello world
This commit is contained in:
parent
bceed46348
commit
8845a326d8
18
README.md
18
README.md
|
@ -34,20 +34,16 @@ Read more in the [Uxambly Guide](https://wiki.xxiivv.com/site/uxambly.html).
|
|||
|
||||
|0100 ( -> )
|
||||
|
||||
;hello-word ,print JSR
|
||||
,hello-word
|
||||
|
||||
&loop
|
||||
( send ) LDRk .Console/char DEO
|
||||
( incr ) #01 ADD
|
||||
( loop ) DUP ,&loop JCN
|
||||
POP
|
||||
|
||||
BRK
|
||||
|
||||
@print ( addr* -- )
|
||||
|
||||
&loop
|
||||
( send ) DUP2 LDA .Console/char DEO
|
||||
( incr ) #0001 ADD2
|
||||
( loop ) DUP2 LDA #00 NEQ ,&loop JCN
|
||||
POP2
|
||||
|
||||
RTN
|
||||
|
||||
@hello-word "hello 20 "World!
|
||||
```
|
||||
|
||||
|
|
|
@ -10,18 +10,14 @@
|
|||
|
||||
|0100 ( -> )
|
||||
|
||||
,hello-word ,print JSR
|
||||
,hello-word
|
||||
|
||||
&loop
|
||||
( send ) LDRk .Console/char DEO
|
||||
( incr ) #01 ADD
|
||||
( loop ) DUP ,&loop JCN
|
||||
POP
|
||||
|
||||
BRK
|
||||
|
||||
@print ( addr* -- )
|
||||
|
||||
&loop
|
||||
( send ) LDAk .Console/char DEO
|
||||
( incr ) #0001 ADD2
|
||||
( loop ) LDAk ,&loop JCN
|
||||
POP2
|
||||
|
||||
RTN
|
||||
|
||||
@hello-word "hello 20 "World!
|
Loading…
Reference in New Issue