Skip to content

Commit

Permalink
vm: fix load_raw, fix rng bug in textelite (carry flag shifting...)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Mar 17, 2024
1 parent 04df3c9 commit fe2b679
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/res/prog8lib/virtual/diskio.p8
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ diskio {
sub load_raw(uword filenameptr, uword start_address) -> uword {
%ir {{
loadm.w r65534,diskio.load_raw.filenameptr
loadm.w r65535,diskio.load_raw.address_override
loadm.w r65535,diskio.load_raw.start_address
syscall 57 (r65534.w, r65535.w): r0.w
returnr.w r0
}}
Expand Down
2 changes: 0 additions & 2 deletions docs/source/todo.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
TODO
====

vm textelite: after 1 galaxy jump: galaxy maps shows wrong planet name until you redraw them a second time. Current planet name changes when showing maps and asking planet i)nfo!

...


Expand Down
2 changes: 1 addition & 1 deletion examples/textelite.p8
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ galaxy {
sub twist(uword x) -> uword {
ubyte xh = msb(x)
ubyte xl = lsb(x)
rol(xh)
xh <<= 1 ; make sure carry flag is not used on first shift!
rol(xl)
return mkword(xh, xl)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ org.gradle.daemon=true
kotlin.code.style=official
javaVersion=11
kotlinVersion=1.9.22
version=10.2-SNAPSHOT
version=10.2

0 comments on commit fe2b679

Please sign in to comment.