mirror of
https://github.com/irmen/prog8.git
synced 2025-01-27 10:31:40 +00:00
not a bug
This commit is contained in:
parent
cf1e8b194a
commit
4094f89d4a
@ -2,6 +2,8 @@
|
|||||||
TODO
|
TODO
|
||||||
====
|
====
|
||||||
|
|
||||||
|
- optimize away 1 ** x into just 1 and 0 ** x into just 0
|
||||||
|
- optimize 2 ** x into (1<<x) if x is an integer. where 1 is in the type of the assign target if possible
|
||||||
- add minv(a,b) and maxv(a,b) functions to determine the max or min of 2 values
|
- add minv(a,b) and maxv(a,b) functions to determine the max or min of 2 values
|
||||||
- add progend() builtin function that returns the last address of the program in memory + 1 (to be able to stick dynamic data after the program easily)
|
- add progend() builtin function that returns the last address of the program in memory + 1 (to be able to stick dynamic data after the program easily)
|
||||||
- see if we can group some errors together for instance the (now single) errors about unidentified symbols
|
- see if we can group some errors together for instance the (now single) errors about unidentified symbols
|
||||||
|
@ -75,8 +75,7 @@ main {
|
|||||||
uword width = mkword(buffer[4], buffer[3])
|
uword width = mkword(buffer[4], buffer[3])
|
||||||
uword height = mkword(buffer[6], buffer[5])
|
uword height = mkword(buffer[6], buffer[5])
|
||||||
ubyte bpp = buffer[7]
|
ubyte bpp = buffer[7]
|
||||||
uword num_colors = 1
|
uword num_colors = $0001 << bpp
|
||||||
num_colors <<= bpp ; TODO FIX THIS: uword num_colors = 1 << bpp
|
|
||||||
ubyte flags = buffer[8]
|
ubyte flags = buffer[8]
|
||||||
ubyte compression = flags & %00000011
|
ubyte compression = flags & %00000011
|
||||||
ubyte palette_format = (flags & %00000100) >> 2
|
ubyte palette_format = (flags & %00000100) >> 2
|
||||||
|
@ -7,14 +7,6 @@
|
|||||||
|
|
||||||
main {
|
main {
|
||||||
sub start() {
|
sub start() {
|
||||||
ubyte bpp = 7
|
|
||||||
uword num_colors = 1 << bpp ; TODO FIX THIS
|
|
||||||
|
|
||||||
txt.chrout('\n')
|
|
||||||
txt.chrout('\n')
|
|
||||||
txt.print_uw(num_colors)
|
|
||||||
txt.chrout('\n')
|
|
||||||
|
|
||||||
|
|
||||||
test_stack.test()
|
test_stack.test()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user