Jump to content
IGNORED

Envision question


Recommended Posts

Can anyone tell me how to convert the data Envision produces to hex? I'm trying to add it to ATasm (as far as I know, ATasm doesn't like decimal numbers but I might be missing something basic as I'm still getting used to assembly).

 

Thanks!

Link to comment
Share on other sites

Envision 8bits? press the "W" to "write data statements" and select MAC65 format.. I don't remember if you can save the font and the map to different files..

 

Envision PC? you use "E" to export the font and "S" to save a binary map

 

if you already have the data in decimal format I think that you should be able to use it in Atasm..

if you were using MADS you could just include the binary file :P

 

NRV

Link to comment
Share on other sites

Thanks for the response NRV. Yes, it's Envision PC.

 

The problem is when I try adding the decimal data in .BYTE format to Atasm - it still compiles but gives an error.

 

So I realize I should have asked is it possible to use decimal values after the .BYTE command?

 

eg: .BYTE $FF, F3, A1... etc works

whereas

.BYTE 192,43,22... etc causes the emulator I'm testing code in to crash

Link to comment
Share on other sites

Envision 8bits? press the "W" to "write data statements" and select MAC65 format.. I don't remember if you can save the font and the map to different files..

 

Envision PC? you use "E" to export the font and "S" to save a binary map

 

if you already have the data in decimal format I think that you should be able to use it in Atasm..

if you were using MADS you could just include the binary file :P

 

NRV

 

Hi Avram,

 

you can include the binary file in ATasm by using .incbin

Link to comment
Share on other sites

Well, no luck so far. At the beginning of my code I link to a test character set (gotten by Exporting from Envision PC) with the following:

 

*=$800

.INCBIN TESTER

 

And the TESTER file looks something like this:

 

.BY 0,0,0,0,0,0,0,0

.BY 0,24,24,24,24,0,24,0

.BY 0,102,102,102,0,0,0,0

.BY 0,102,255,102,102,255,102,0

 

And all I manage to do is crash the emulator! Any ideas what I'm doing wong?

Link to comment
Share on other sites

Well, no luck so far. At the beginning of my code I link to a test character set (gotten by Exporting from Envision PC) with the following:

 

*=$800

.INCBIN TESTER

 

And the TESTER file looks something like this:

 

.BY 0,0,0,0,0,0,0,0

.BY 0,24,24,24,24,0,24,0

.BY 0,102,102,102,0,0,0,0

.BY 0,102,255,102,102,255,102,0

 

And all I manage to do is crash the emulator! Any ideas what I'm doing wong?

 

Ah, OK, that isn't a binary file. You need to use .INCLUDE rather than .INCBIN

However it should have .BYTE at beginning of lines. Export to MAC/65 should make it do that.

Decimal values will work fine, doen't have to be Hex for ATasm. Maybe something else is causing the crash.

Maybe try and manually enter a few of the .BYTE lines and see if you still get crashes then

Edited by Sheddy
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...