Shop OBEX P1 Docs P2 Docs Learn Events
Question about ebasic — Parallax Forums

Question about ebasic

Martin HodgeMartin Hodge Posts: 1,246
edited 2012-06-17 11:04 in Propeller 1
Recently whenever I run an ebasic1 program I'm getting some kind of debug listing before the program begins. Have I missed a compile switch somewhere?

Secondly, is ebasic2 unfinished or just a radical new approach to entering code that I can't figure out? ;)
10 print "Count to 100"
20 for n = 0 to 100
30 if n mod 10 = 0 then
40   print
50  end if
60  print n; " ";
70 next n
OK
run
main:
00002218 0028 19 02 00 00 80 LIT 80000002
0000221d 002d 19 03 00 00 00 LIT 00000003
00002222 0032 21 01          CALL 01
00002224 0034 23             DROP
00002225 0035 19 05 00 00 80 LIT 80000005
0000222a 003a 21 00          CALL 00
0000222c 003c 23             DROP
0000222d 003d 19 00 00 00 00 LIT 00000000
00002232 0042 1b 00 00 00 00 GSET 00000000
00002237 0047 1a 00 00 00 00 GREF 00000000
0000223c 004c 19 64 00 00 00 LIT 00000064
00002241 0051 14             LE
00002242 0052 01 15 00 00 00 BRT 15000000 # 15000057
00002247 0057 05 55 00 00 00 BR 55000000 # 5500005c
0000224c 005c 1a 00 00 00 00 GREF 00000000
00002251 0061 19 01 00 00 00 LIT 00000001
00002256 0066 08             ADD
00002257 0067 05 d6 ff ff ff BR d6ffffff # d700006b
0000225c 006c 1a 00 00 00 00 GREF 00000000
00002261 0071 19 0a 00 00 00 LIT 0000000a
00002266 0076 0c             REM
00002267 0077 19 00 00 00 00 LIT 00000000
0000226c 007c 15             EQ
0000226d 007d 03 08 00 00 00 BRF 08000000 # 8000082
00002272 0082 19 05 00 00 80 LIT 80000005
00002277 0087 21 00          CALL 00
00002279 0089 23             DROP
0000227a 008a 19 03 00 00 80 LIT 80000003
0000227f 008f 1a 00 00 00 00 GREF 00000000
00002284 0094 21 01          CALL 01
00002286 0096 23             DROP
00002287 0097 19 02 00 00 80 LIT 80000002
0000228c 009c 19 02 00 00 00 LIT 00000002
00002291 00a1 21 01          CALL 01
00002293 00a3 23             DROP
00002294 00a4 19 06 00 00 80 LIT 80000006
00002299 00a9 21 00          CALL 00
0000229b 00ab 23             DROP
0000229c 00ac 05 ab ff ff ff BR abffffff # ac0000b0
000022a1 00b1 00             HALT


H:0 O:3 D:180 V:1 T:196
Count to 100


0 1 2 3 4 5 6 7 8 9 
10 11 12 13 14 15 16 17 18 19 
20 21 22 23 24 25 26 27 28 29 
30 31 32 33 34 35 36 37 38 39 
40 41 42 43 44 45 46 47 48 49 
50 51 52 53 54 55 56 57 58 59 
60 61 62 63 64 65 66 67 68 69 
70 71 72 73 74 75 76 77 78 79 
80 81 82 83 84 85 86 87 88 89 
90 91 92 93 94 95 96 97 98 99 
100 OK

Comments

  • David BetzDavid Betz Posts: 14,516
    edited 2012-06-17 11:04
    Oops, sorry. That's a disassembly of the byte codes that are generated by the compiler. I'll fix that and push the change. And, yes, ebasic2 is unfinished. In fact, I'm working on it in a completely different repository on Google Code called pico-basic. It should probably be deleted from the demos folder.
Sign In or Register to comment.