Fixed hello world
This commit is contained in:
parent
bceed46348
commit
8845a326d8
16
README.md
16
README.md
|
@ -34,19 +34,15 @@ Read more in the [Uxambly Guide](https://wiki.xxiivv.com/site/uxambly.html).
|
|||
|
||||
|0100 ( -> )
|
||||
|
||||
;hello-word ,print JSR
|
||||
|
||||
BRK
|
||||
|
||||
@print ( addr* -- )
|
||||
,hello-word
|
||||
|
||||
&loop
|
||||
( send ) DUP2 LDA .Console/char DEO
|
||||
( incr ) #0001 ADD2
|
||||
( loop ) DUP2 LDA #00 NEQ ,&loop JCN
|
||||
POP2
|
||||
( send ) LDRk .Console/char DEO
|
||||
( incr ) #01 ADD
|
||||
( loop ) DUP ,&loop JCN
|
||||
POP
|
||||
|
||||
RTN
|
||||
BRK
|
||||
|
||||
@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