Jump to content
IGNORED

Did I break the IntyBASIC compiler?


Recommended Posts

I am so confused. I am typing to compile a simple program (http://pastebin.com/wSdYfPAq) which appears to be causing IntyBASIC and as1600 to have a bit of a disagreement. I'll link the INCLUDEd file if needed -- it's just halfwidth alphabet data as a bunch of DATA statements with no execution.

 

Anyway, IntyBASIC with the --jlp switch is processing it just fine:

 

 

IntyBASIC compiler v1.2.5 Feb/16/2016

© 2014-2016 Oscar Toledo G. http://nanochess.org/
4 used 8-bit variables of 228 available
76 used 16-bit variables of 8000 available
Compilation finished

 

...but as1600 doesn't like what it's outputting and won't compile it:

 

 

ERROR SUMMARY - ERRORS DETECTED 1

- WARNINGS 0

 

 

When I look in the .lst file that as1600 generates for the error, a few thousand lines in I see the following:

50F6 0283 033F 			MVI _color,R3
50F8 0284 033E 			MVI _screen,R4
				CALL PRNUM16.l
alphabet2.asm:3216: ERROR - undefined symbol  PRNUM16.l
50FA 0004 0100 0000 
50FD 0244 033E 			MVO R4,_screen

Does anyone have any idea what's going on here? I'm still trying to learn IntyBASIC but I'm absolutely baffled here. Thanks in advance!

Edited by petit chou
Link to comment
Share on other sites

Aha! Okay, easy fix - I'm surprised the compiler didn't complain about it though. Thanks!

 

There are still many things the compiler doesn't complain about. Some is by design, some is just due to nanochess's time. You'll learn pretty quick what you can get away with.

 

I'm surprised you aren't seeing a warning from this, though: DIM #TILES(4 * 18). IntyBASIC only allows 47 16-bit values, max. You're trying to define 72!

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...