mirror of
https://github.com/irmen/prog8.git
synced 2025-03-22 19:30:04 +00:00
todo
This commit is contained in:
parent
c319233ddc
commit
885df9156f
@ -6,10 +6,10 @@ package prog8.buildversion
|
||||
const val MAVEN_GROUP = "prog8"
|
||||
const val MAVEN_NAME = "compiler"
|
||||
const val VERSION = "9.5-SNAPSHOT"
|
||||
const val GIT_REVISION = 4101
|
||||
const val GIT_SHA = "31c132c2ebfef803ae197489fc7eaf56642501ac"
|
||||
const val GIT_DATE = "2023-09-14T21:04:23Z"
|
||||
const val GIT_REVISION = 4108
|
||||
const val GIT_SHA = "c319233ddc7f43a05e2090e293abbed8d80ce8cf"
|
||||
const val GIT_DATE = "2023-09-18T21:22:03Z"
|
||||
const val GIT_BRANCH = "master"
|
||||
const val BUILD_DATE = "2023-09-14T21:06:25Z"
|
||||
const val BUILD_UNIX_TIME = 1694725585234L
|
||||
const val BUILD_DATE = "2023-09-18T21:27:55Z"
|
||||
const val BUILD_UNIX_TIME = 1695072475414L
|
||||
const val DIRTY = 1
|
||||
|
@ -1,6 +1,8 @@
|
||||
TODO
|
||||
====
|
||||
|
||||
- fix compiler error with vm/expericodegen: petaxian (minimal error cases in test.p8)
|
||||
|
||||
- [on branch: shortcircuit] investigate McCarthy evaluation again? this may also reduce code size perhaps for things like if a>4 or a<2 ....
|
||||
- IR: reduce the number of branch instructions such as BEQ, BEQR, etc (gradually), replace with CMP(I) + status branch instruction
|
||||
- IR: reduce amount of CMP/CMPI after instructions that set the status bits correctly (LOADs? INC? etc), but only after setting the status bits is verified!
|
||||
|
@ -1,20 +1,14 @@
|
||||
%import textio
|
||||
|
||||
%zeropage basicsafe
|
||||
|
||||
main {
|
||||
uword[] pages = [ &page_credits.chars_1]
|
||||
|
||||
sub start() {
|
||||
ubyte arg3 = 200
|
||||
uword result = calc(101, 202, arg3)
|
||||
txt.print_uw(result)
|
||||
|
||||
str name = "irmen"
|
||||
ubyte[] array = [1,2,3,4]
|
||||
bool xx = 44 in array
|
||||
bool yy = 'a' in name
|
||||
; cx16.r0 = pages[0] ; TODO fix IR compiler error undefined symbol pages
|
||||
uword @shared foo = pages[0] ; TODO fix IR compiler error no chunk with label 'page_credits.chars_1' (caused by optimizer)
|
||||
}
|
||||
|
||||
sub calc(ubyte a1, ubyte a2, ubyte a3) -> uword {
|
||||
return a1 as uword + a2 + a3
|
||||
}
|
||||
}
|
||||
|
||||
page_credits {
|
||||
ubyte[] chars_1 = [11]
|
||||
; TODO fix IR compiler crash when this array is moved into main block itself
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user