Jump to content
IGNORED

USR error in Altirra 3.00


Recommended Posts

I'm pretty sure he tested it, yes. The BASIC code you have in the original post doesn't make sense and will crash on any Atari computer. If you're trying to type in a BASIC listing from somewhere, it would help to have a link so we can see the original listing or article.

  • Like 1
Link to comment
Share on other sites

Ranger, consult books like Mapping the Atari which are all over the place including if memory serves on MrFish's super fine web site http://seriouscomputerist.altervista.org/

 

It will show you where is and isn't in this case a good place to store code...

 

And yeah, I think we can assume the author tested your code in this case :)

 

If you have not looked at that book before then do, its a bible for programmers with the odd mistake that the author of Altirra has noticed, in fact you may want to check out this:

 

http://www.virtualdub.org/downloads/Altirra%20Hardware%20Reference%20Manual.pdf

 

Its the Altirra hardware reference manual, another MUST HAVE book...

 

I forget the authors name..

 

He seems to know his stuff though..

 

:)

 

Have great fun with your programming

 

Paul..

Edited by Mclaneinc
  • Like 1
Link to comment
Share on other sites

code:

let a=usr(550)

Data 324,400,123

Data 213,123,40

data 123,12,23

end

a=usr(550)

then a menu popped up and said that the emulator had jammed

 

First of all, there is no need to use the word LET.

Second, if you would try it, LET USR does the USR call immediately. Jump into Atari BASIC and type: LET A=USR(58487).

Instant jump through $E477.

 

As mentioned above: 550 is NOT a proper address for your own code. That area is reserved for the OS Timers.

 

Try $600 (1536).

 

Please Read several times until you understand Mapping the Atari: https://www.atariarchives.org/mapping/memorymap.php

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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...