6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 11:57 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: EhBasic and interrupts
PostPosted: Sun May 03, 2020 5:37 pm 
Offline

Joined: Tue Jun 19, 2018 8:28 am
Posts: 122
I have some free time, so I'd like to develop my homemade 6502 computer a little bit further.
I need to implement an interrupt support for some peripherals, mainly M6242 RTC and MC6840 timer. Then I'll probably write routines for ring buffer support for UART transmission.
This is quite easy task, I already implemented M6242 and MC6840 support in my other 8080 and 6502 designs, but then I was writing the code from scratch. Now I need to include it into existing code od EhBasic, without braking it.

So just to be sure, I'd like to ask... In min_mon.asm there is a IRQ_CODE routine. Should I write my interrupt support into it, asking my chips if they reported interrupt? What IrqBase flag byte does?


Top
 Profile  
Reply with quote  
PostPosted: Sun May 03, 2020 6:19 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Take a look at this post.

viewtopic.php?f=5&t=5212

I ended up removing all of interrupt code which saved some space and yielded a bit of extra performance. I also have a CMOS version that is more easily implemented with an existing system... meaning no Min_Mon code required. All you need are the main vectors for console input and output, a contiguous section of page zero and configure the memory sections above the stack.

_________________
Regards, KM
https://github.com/floobydust


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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: