6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed Jun 26, 2024 12:23 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Jul 16, 2018 11:06 am 
Offline

Joined: Mon May 21, 2018 8:39 am
Posts: 41
At memory location $FBDD in the Monitor (Apple II/e), resides a subroutine that beeps the speaker.

If we try to call that subroutine from Integer BASIC, we have to use CALL 768 (where 768 is in decimal form and it's equivalent in hexadecimal is $300)

Normally the correct one shouldn't be CALL 64477? (which is the decimal equivalent of $FBDD)

It should but according to Apple II reference manual, locations above 32767 are specified using negative numbers.

Okay but that doesn't mean that CALL 768 is still wrong?

Nevertheless, it's NOT wrong, it's correct, since the speaker beeps!

Why? :?


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 16, 2018 12:39 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10834
Location: England
It looks to me like $300 is a common place to put user code - have you already done some POKE or code-loading action which set up a routine at $300?

CALL -1059
might be the right invocation in Basic to JSR to $FBDD


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 16, 2018 12:51 pm 
Offline

Joined: Mon May 21, 2018 8:39 am
Posts: 41
Correct!

Thank you! :)


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 16, 2018 3:18 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1938
Location: Sacramento, CA, USA
Nicely done, Ed! I imagine that Integer BASIC Apple ][s are about as common as hen's teeth on your side of the pond, but you nailed the response.

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 16, 2018 3:45 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10834
Location: England
Cheers Mike, indeed, pretty rare but not never seen. In fact I think there were one or two at the recent ABUG meetup. But as it happens I just did a bit of web searching - if I'd been really diligent, or if I'd thought of it, I might have fired up an emulator...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: