Jump to content
IGNORED

Trying to compile IntyBASIC samples


Recommended Posts

Figured I'd detail my newbie failures. Not just for advice (compiling an example) but feedback from a beginners perspective. This is after several searches and trying to follow manual.txt

 

 

So, I dumped the contents of intybasic_compiler_v1.2.8.zip into C:\Dev\IntyBASIC

 

I opened up a command prompt in the samples folder and tried this:

 

C:\Dev\IntyBASIC\samples>..\intybasic test.bas test.asm


IntyBASIC compiler v1.2 Aug/19/2015
(c) 2014-2015 Oscar Toledo G. http://nanochess.org/


Error: unable to include: intybasic_prologue.asm
Error: unable to include: intybasic_epilogue.asm
3 used 8-bit variables of 228 available
0 used 16-bit variables of 47 available
Compilation finished

I then tried to run the second step as such:

C:\Dev\IntyBASIC\samples>..\as1600 -o test.bin =l test.lst test.asm

It looks like the file as1600.exe doesn't exist. I didn't see a link to it in the list of downloads to get in regards to IntyBASIC.

 

After doing a Google search on "as1600 + intellivision" I found a website with jzintv-1.0-beta4.zip that had the as1600.exe in a bin directory. I dumped the bin folder contents into the C:\Dev\IntyBASIC directory.

 

I tried "C:\Dev\IntyBASIC\samples>..\as1600 -o test.bin =l test.lst test.asm" once again and got this:

C:\Dev\IntyBASIC\samples>C:\Dev\IntyBASIC\as1600.exe -o test.bin -l test.lst test.asm
 ERROR SUMMARY - ERRORS DETECTED 1393
               -  WARNINGS       0

I know I'm getting something fundamentally wrong here. How do I compile and run one of the sample programs?

Link to comment
Share on other sites

I installed the SDK with default settings previously.

 

This time I tried deleting my current C:\Dev\IntyBASIC

 

I then uninstalled the SDK and reinstalled it to C:\Dev\IntyBASIC

 

I then opened up a command prompt and got into the C:\Dev\IntyBASIC\Examples\Hello folder.

 

This is what happened when I tried to run IntyBASIC on the hello.bas:

C:\Dev\IntyBASIC\Examples\hello>intybasic hello.bas hello.asm


IntyBASIC compiler v1.2.8 Oct/07/2016
(c) 2014-2016 Oscar Toledo G. http://nanochess.org/


Error: Unable to include prologue: intybasic_prologue.asm
Error: INCLUDE not successful in line 17
Error: not a constant expression in MODE in line 24
Warning: invalid extra characters in line 24
Error: missing right parenthesis in array access in line 33
Warning: invalid extra characters in line 33
Error: missing right parenthesis in array access in line 36
Warning: invalid extra characters in line 36
Error: Unable to include epilogue: intybasic_epilogue.asm
Warning: variable 'DEF00' read but never assigned
Warning: variable 'SCREEN_CS' read but never assigned
Error: label 'SCREENPOS' undefined
2 used 8-bit variables of 228 available
0 used 16-bit variables of 47 available
Compilation finished
Link to comment
Share on other sites

Yeah, if you are, as you say, a newbie, then I suggest you try the IntyBASIC SDK instead of trying to set it all up yourself.

 

It's not that direct use of IntyBASIC in the command line is not recommended, and we will help you set it up if you really want to go that way. It's just that you will find that te SDK encapsulates most of the complexity of building the source.

 

For instance, the error you are getting is caused by missing information in your command line. IntyBASIC expects the epilogue/prologue library files in the current directory or their path supplied in the command line. Likewise, you will find that the emulator jzIntv will require various parameters describing the location of various necessary files such as the EXEC ROMs. The SDK sets all that for you so that you don't have to worry about it.

 

dZ.

Link to comment
Share on other sites

I installed the SDK with default settings previously.

 

This time I tried deleting my current C:\Dev\IntyBASIC

 

I then uninstalled the SDK and reinstalled it to C:\Dev\IntyBASIC

 

I then opened up a command prompt and got into the C:\Dev\IntyBASIC\Examples\Hello folder.

 

This is what happened when I tried to run IntyBASIC on the hello.bas:

C:\Dev\IntyBASIC\Examples\hello>intybasic hello.bas hello.asm


IntyBASIC compiler v1.2.8 Oct/07/2016
(c) 2014-2016 Oscar Toledo G. http://nanochess.org/


Error: Unable to include prologue: intybasic_prologue.asm
Error: INCLUDE not successful in line 17
Error: not a constant expression in MODE in line 24
Warning: invalid extra characters in line 24
Error: missing right parenthesis in array access in line 33
Warning: invalid extra characters in line 33
Error: missing right parenthesis in array access in line 36
Warning: invalid extra characters in line 36
Error: Unable to include epilogue: intybasic_epilogue.asm
Warning: variable 'DEF00' read but never assigned
Warning: variable 'SCREEN_CS' read but never assigned
Error: label 'SCREENPOS' undefined
2 used 8-bit variables of 228 available
0 used 16-bit variables of 47 available
Compilation finished 

If you are using the SDK, then I recommend checking out the documentation it brings. It shows you how to build and how to use it. For example, rather than calling IntyBASIC directly, you should use the "IntyBuild" tool.

 

Note all examples and contributed programs in the SDK distribution were built using the SDK itself.

 

dZ.

  • Like 1
Link to comment
Share on other sites

Yep. It looks like the SDK has a usage guide.rtf that details how to use INTYBUILD.BAT

 

I tried it out and successfully got a working ROM out of it. Thank you guys!

C:\Dev\IntyBASIC\Examples\hello>intybuild hello
IntyBASIC SDK Compiler Build Script (INTYBUILD.BAT)
  Created by:   DZ-Jay
  Last updated: 01/06/2017


  No JLP support.


IntyBASIC compiler v1.2.8 Oct/07/2016
(c) 2014-2016 Oscar Toledo G. http://nanochess.org/


0 used 8-bit variables of 228 available
0 used 16-bit variables of 47 available
Compilation finished


Assembling...
 ERROR SUMMARY - ERRORS DETECTED 0
               -  WARNINGS       0
Mapping symbols...
processing asm\hello.asm...
processing C:\Dev\IntyBASIC\Examples\hello\hello.BAS...


Program build completed.
  • Like 3
Link to comment
Share on other sites

 

Yep. It looks like the SDK has a usage guide.rtf that details how to use INTYBUILD.BAT

 

I tried it out and successfully got a working ROM out of it. Thank you guys!

Cool! Glad it worked. Now, let us know of you have any further troubles, and good luck in your game programming! :)

 

dZ.

  • 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...
  • Recently Browsing   0 members

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