Skip to content

Commit fe2b679

Browse files
committed
vm: fix load_raw, fix rng bug in textelite (carry flag shifting...)
1 parent 04df3c9 commit fe2b679

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

compiler/res/prog8lib/virtual/diskio.p8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ diskio {
189189
sub load_raw(uword filenameptr, uword start_address) -> uword {
190190
%ir {{
191191
loadm.w r65534,diskio.load_raw.filenameptr
192-
loadm.w r65535,diskio.load_raw.address_override
192+
loadm.w r65535,diskio.load_raw.start_address
193193
syscall 57 (r65534.w, r65535.w): r0.w
194194
returnr.w r0
195195
}}

docs/source/todo.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
TODO
22
====
33

4-
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!
5-
64
...
75

86

examples/textelite.p8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ galaxy {
692692
sub twist(uword x) -> uword {
693693
ubyte xh = msb(x)
694694
ubyte xl = lsb(x)
695-
rol(xh)
695+
xh <<= 1 ; make sure carry flag is not used on first shift!
696696
rol(xl)
697697
return mkword(xh, xl)
698698
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ org.gradle.daemon=true
55
kotlin.code.style=official
66
javaVersion=11
77
kotlinVersion=1.9.22
8-
version=10.2-SNAPSHOT
8+
version=10.2

0 commit comments

Comments
 (0)