1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-08-02 09:29:35 +00:00

Made dword value higher (>$80000000)

This commit is contained in:
jespergravgaard 2018-01-28 22:15:09 +01:00
parent 3d33851983
commit 9b09aaab14
4 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
void main() {
dword a = 100000;
dword a = 4000000000;
for( byte i: 0..100) {
dword b = a + i;
byte c = (byte) b;

View File

@ -3,7 +3,7 @@
.pc = $80d "Program"
jsr main
main: {
.const a = $186a0
.const a = $ee6b2800
.const SCREEN = $400
.label b = 2
ldx #0

View File

@ -2,7 +2,7 @@ PARSING src/test/java/dk/camelot64/kickc/test/kc/dword.kc
void main() {
dword a = 100000;
dword a = 4000000000;
for( byte i: 0..100) {
dword b = a + i;
byte c = (byte) b;
@ -13,7 +13,7 @@ void main() {
STATEMENTS
proc (void()) main()
(dword) main::a ← (dword/signed dword) 100000
(dword) main::a ← (dword) 4000000000
(byte) main::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
main::@1:
(dword~) main::$0 ← (dword) main::a + (byte) main::i
@ -48,7 +48,7 @@ INITIAL CONTROL FLOW GRAPH
@begin: scope:[] from
to:@1
main: scope:[main] from
(dword) main::a ← (dword/signed dword) 100000
(dword) main::a ← (dword) 4000000000
(byte) main::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
to:main::@1
main::@1: scope:[main] from main main::@1
@ -81,7 +81,7 @@ CONTROL FLOW GRAPH SSA WITH ASSIGNMENT CALL & RETURN
@begin: scope:[] from
to:@1
main: scope:[main] from @1
(dword) main::a#0 ← (dword/signed dword) 100000
(dword) main::a#0 ← (dword) 4000000000
(byte) main::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
to:main::@1
main::@1: scope:[main] from main main::@1
@ -144,7 +144,7 @@ Redundant Phi (dword) main::a#1 (dword) main::a#0
Succesful SSA optimization Pass2RedundantPhiElimination
Simple Condition (boolean~) main::$2 if((byte) main::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 101) goto main::@1
Succesful SSA optimization Pass2ConditionalJumpSimplification
Constant (const dword) main::a#0 = 100000
Constant (const dword) main::a#0 = 4000000000
Constant (const byte) main::i#0 = 0
Constant (const byte*) main::SCREEN#0 = ((byte*))1024
Succesful SSA optimization Pass2ConstantIdentification
@ -276,7 +276,7 @@ bend_from_b1:
bend:
//SEG9 main
main: {
.const a = $186a0
.const a = $ee6b2800
.const SCREEN = $400
.label b = 3
.label c = 7
@ -369,7 +369,7 @@ bend_from_b1:
bend:
//SEG9 main
main: {
.const a = $186a0
.const a = $ee6b2800
.const SCREEN = $400
.label b = 2
//SEG10 [5] phi from main to main::@1 [phi:main->main::@1]
@ -444,7 +444,7 @@ FINAL SYMBOL TABLE
(byte*) main::SCREEN
(const byte*) main::SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
(dword) main::a
(const dword) main::a#0 a = (dword/signed dword) 100000
(const dword) main::a#0 a = (dword) 4000000000
(dword) main::b
(dword) main::b#0 b zp ZP_DWORD:2 22.0
(byte) main::c
@ -476,7 +476,7 @@ Score: 477
//SEG8 @end
//SEG9 main
main: {
.const a = $186a0
.const a = $ee6b2800
.const SCREEN = $400
.label b = 2
//SEG10 [5] phi from main to main::@1 [phi:main->main::@1]

View File

@ -7,7 +7,7 @@
(byte*) main::SCREEN
(const byte*) main::SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
(dword) main::a
(const dword) main::a#0 a = (dword/signed dword) 100000
(const dword) main::a#0 a = (dword) 4000000000
(dword) main::b
(dword) main::b#0 b zp ZP_DWORD:2 22.0
(byte) main::c