1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-16 21:07:56 +00:00
kickc/src/test/ref/halfscii.cfg
jespergravgaard 6253bdce28 Improved out
2020-10-05 22:58:02 +02:00

88 lines
3.1 KiB
INI

void main()
main: scope:[main] from
asm { sei }
[1] *PROCPORT = $32
to:main::@1
main::@1: scope:[main] from main main::@5
[2] main::charset4#10 = phi( main/CHARSET4, main::@5/main::charset4#1 )
[2] main::chargen#10 = phi( main/CHARGEN, main::@5/main::chargen#1 )
[3] main::chargen1#0 = main::chargen#10 + 1
[4] main::$1 = *main::chargen#10 & $60
[5] main::$2 = *main::chargen1#0 & $60
[6] main::$3 = main::$2 >> 2
[7] main::$4 = main::$1 | main::$3
[8] main::$5 = main::$4 >> 1
[9] main::$6 = main::$5 >> 2
[10] main::bits#0 = bits_count[main::$6]
[11] if(main::bits#0<2) goto main::@2
to:main::@6
main::@6: scope:[main] from main::@1
[12] phi()
to:main::@2
main::@2: scope:[main] from main::@1 main::@6
[13] main::bits_gen#9 = phi( main::@1/0, main::@6/1 )
[14] main::bits_gen#1 = main::bits_gen#9 << 1
[15] main::$11 = *main::chargen#10 & $18
[16] main::$12 = *main::chargen1#0 & $18
[17] main::$13 = main::$12 >> 2
[18] main::$14 = main::$11 | main::$13
[19] main::$15 = main::$14 >> 1
[20] main::bits#1 = bits_count[main::$15]
[21] if(main::bits#1<2) goto main::@3
to:main::@7
main::@7: scope:[main] from main::@2
[22] main::bits_gen#4 = main::bits_gen#1 + 1
to:main::@3
main::@3: scope:[main] from main::@2 main::@7
[23] main::bits_gen#11 = phi( main::@2/main::bits_gen#1, main::@7/main::bits_gen#4 )
[24] main::bits_gen#14 = main::bits_gen#11 << 1
[25] main::$20 = *main::chargen#10 & 6
[26] main::$21 = main::$20 << 1
[27] main::$22 = *main::chargen1#0 & 6
[28] main::$23 = main::$22 >> 1
[29] main::$24 = main::$21 | main::$23
[30] main::bits#2 = bits_count[main::$24]
[31] if(main::bits#2<2) goto main::@4
to:main::@8
main::@8: scope:[main] from main::@3
[32] main::bits_gen#6 = main::bits_gen#14 + 1
to:main::@4
main::@4: scope:[main] from main::@3 main::@8
[33] main::bits_gen#13 = phi( main::@3/main::bits_gen#14, main::@8/main::bits_gen#6 )
[34] main::bits_gen#16 = main::bits_gen#13 << 1
[35] main::$29 = *main::chargen#10 & 1
[36] main::$30 = main::$29 << 2
[37] main::$31 = *main::chargen1#0 & 1
[38] main::$32 = main::$30 | main::$31
[39] main::bits#3 = bits_count[main::$32]
[40] if(main::bits#3<2) goto main::@5
to:main::@9
main::@9: scope:[main] from main::@4
[41] main::bits_gen#8 = main::bits_gen#16 + 1
to:main::@5
main::@5: scope:[main] from main::@4 main::@9
[42] main::bits_gen#15 = phi( main::@4/main::bits_gen#16, main::@9/main::bits_gen#8 )
[43] main::bits_gen#7 = main::bits_gen#15 << 1
[44] *main::charset4#10 = main::bits_gen#7
[45] main::charset4#1 = ++ main::charset4#10
[46] main::chargen#1 = main::chargen#10 + 2
[47] if(main::chargen#1<CHARGEN+$800) goto main::@1
to:main::@10
main::@10: scope:[main] from main::@5
[48] *PROCPORT = $37
asm { cli }
to:main::@11
main::@11: scope:[main] from main::@10 main::@11
[50] main::i#2 = phi( main::@10/0, main::@11/main::i#1 )
[51] SCREEN[main::i#2] = main::i#2
[52] main::i#1 = ++ main::i#2
[53] if(main::i#1!=0) goto main::@11
to:main::@12
main::@12: scope:[main] from main::@11
[54] *D018 = $19
to:main::@return
main::@return: scope:[main] from main::@12
[55] return
to:@return