JamesD Posted February 2, 2015 Share Posted February 2, 2015 Probably.... Unless you have an Apple //c or ][gs, with standard Hardware to generate an Interrupt, you will need to make sure you Target Machine has Additional Hardware to make that happen.. e.g. The MOS6522 or equivalent on the Mouse Card/Interface is used for generating Interrupts. Mocking Board, Echo ][+, John Bell MOS6522 Card, etc... Interrupts are tricky on the Apple ][, because all the Disk ][ Access are Timing Critical, so Interrupts are Disabled while performing Disk Access. Apple DOS 3.3 is very poor with Interrupts, ProDOS has better support for Interrupts. vertical blank signal detection can be done by the above posted links.. MarkO FWIW, even though interrupts are disabled for disk access, any interrupt you set up would return to normal operation after disk access is completed. You do have to use a free running timer on the VIA (6522) instead of repeatedly setting up a one shot timer that is reset by the interrupt. If you don't the timer will be out of sync once disk access finishes. The original version of my music player for the Oric used a one shot timer. @g0blinish If you are going to work on a multi-part demo I suggest using ProDOS on the Apple. Not only is it more interrupt friendly but it's much faster. With a little creativity you could play some background music on a Mockingboard while you are loading. A song with long notes could do the trick. Also remember that ProDOS would let your demo run from a hard drive or CFFA board which would make loading multi-part demos easy to hide behind music played on a Mockingboard. A few long notes is all you need to queue up some more code. This is definitely one area where serial disk access has an advantage over most parallel setups of the day. The CPU doesn't have to stop everything to do disk access. Some of the C64 demos do an impressive job of this. They have code that loads data into the drive RAM and sends it to the computer a little at a time each frame. Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3168849 Share on other sites More sharing options...
Arbee Posted February 2, 2015 Share Posted February 2, 2015 Most non-Apple parallel floppy setups of the early 80s were DMA capable, which was even nicer than the C64 for doing stuff while loading. (This included the original IBM PC). Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3168946 Share on other sites More sharing options...
g0blinish Posted February 3, 2015 Author Share Posted February 3, 2015 @g0blinish If you are going to work on a multi-part demo I suggest using ProDOS on the Apple. Not only is it more interrupt friendly but it's much faster. With a little creativity you could play some background music on a Mockingboard while you are loading. A song with long notes could do the trick. Also remember that ProDOS would let your demo run from a hard drive or CFFA board which would make loading multi-part demos easy to hide behind music played on a Mockingboard. A few long notes is all you need to queue up some more code. thank you, but I don't know how to detect which DOS on .dsk image with Merlin. or which at attached .dsk mouse multitasking demo v1.1 24Feb14.zip Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169237 Share on other sites More sharing options...
MarkO Posted February 3, 2015 Share Posted February 3, 2015 (edited) thank you, but I don't know how to detect which DOS on .dsk image with Merlin. or which at attached .dsk ProDOS will give a Banner at Boot Time.. DOS 3.3 and the other pre-ProDOS systems are fairly quiet.. This Disk appears to be Apple DOS 3.3.. Setup by DogCow, no less!! With Source Code... MarkO Edited February 3, 2015 by MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169260 Share on other sites More sharing options...
MarkO Posted February 3, 2015 Share Posted February 3, 2015 Hmm... I can't get Merlin to Boot Up in AppleWin v1.25.0.3.. Trying v1.23.0.0.. OK!!! I guess I also need to Drag my Apple Mouse Card out and put it in one of my Test Bench Machines to try the Code posted earlier in this thread....... MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169268 Share on other sites More sharing options...
JamesD Posted February 3, 2015 Share Posted February 3, 2015 thank you, but I don't know how to detect which DOS on .dsk image with Merlin. or which at attached .dsk Cyderpress says it's DOS 3.3 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169283 Share on other sites More sharing options...
g0blinish Posted February 3, 2015 Author Share Posted February 3, 2015 Hmm... I can't get Merlin to Boot Up in AppleWin v1.25.0.3.. Trying v1.23.0.0.. OK!!! with 1.24.0..0 OK too. Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169286 Share on other sites More sharing options...
g0blinish Posted February 3, 2015 Author Share Posted February 3, 2015 (edited) I found prodos.dsk with a label you provided. Does makes sence to copy objective file created with Merlinassembler and run again? here is prodos with binary and source. maybe i am lamer and better to try another option. prodos.zip Edited February 3, 2015 by g0blinish Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169301 Share on other sites More sharing options...
JamesD Posted February 3, 2015 Share Posted February 3, 2015 You don't have to use ProDOS, it's just many times faster than DOS 3.3 and a lot more capable.As long as you aren't using any DOS calls and aren't using any addresses used by either DOS your code should run on both.If Merlin works under ProDOS then it might be worth making the switch just for the speed but you certainly don't have to. Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3169518 Share on other sites More sharing options...
JamesD Posted February 16, 2015 Share Posted February 16, 2015 http://apple2online.com/web_documents/AppleMouse%20II%20User's%20Manual%20KB.pdf Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3178739 Share on other sites More sharing options...
MarkO Posted February 16, 2015 Share Posted February 16, 2015 (edited) /************************************* * * * This Space for Rent * * * *************************************/ Edited February 16, 2015 by MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3179030 Share on other sites More sharing options...
MarkO Posted February 16, 2015 Share Posted February 16, 2015 (edited) <a data-ipb="nomediaparse" data-cke-saved-href="http://apple2online.com/web_documents/AppleMouse%20II%20User" href="http://apple2online.com/web_documents/AppleMouse%20II%20User" s%20manual%20kb.pdf"="">http://apple2online.com/web_documents/AppleMouse%20II%20User's%20Manual%20KB.pdf Weird.. Link is corrupted.. http://apple2online.com/web_documents/AppleMouse%20II%20User%27s%20Manual%20KB.pdf Hmm.. Appears to be the Apostrophe in "User's"... MarkO Edited February 16, 2015 by MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3179031 Share on other sites More sharing options...
JamesD Posted February 22, 2015 Share Posted February 22, 2015 FWIW, I found out slot 7 has a SYNC signal so simple hardware could generate a SYNC interrupt. 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3183212 Share on other sites More sharing options...
Iamgroot Posted February 22, 2015 Share Posted February 22, 2015 The interrupt manager card used with GEOS is an example of that simple hardware 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3183625 Share on other sites More sharing options...
JamesD Posted February 23, 2015 Share Posted February 23, 2015 The interrupt manager card used with GEOS is an example of that simple hardwareNow if I could just find some documentation on that card 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3183907 Share on other sites More sharing options...
MarkO Posted February 24, 2015 Share Posted February 24, 2015 FWIW, I found out slot 7 has a SYNC signal so simple hardware could generate a SYNC interrupt. On Pin # 19.. Also, only on Slot #7, on Pin #35, COLOR REF, 3.5MHz of the Video Generator.. IIRC, the Apple ][e AUX Slot has both of these signals too.... MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3184483 Share on other sites More sharing options...
JamesD Posted February 24, 2015 Share Posted February 24, 2015 On Pin # 19.. Also, only on Slot #7, on Pin #35, COLOR REF, 3.5MHz of the Video Generator.. IIRC, the Apple ][e AUX Slot has both of these signals too.... MarkO I know, I was looking at the pinouts to see why a video overlay card had to go in slot 7. 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3184994 Share on other sites More sharing options...
MarkO Posted February 24, 2015 Share Posted February 24, 2015 I know, I was looking at the pinouts to see why a video overlay card had to go in slot 7. Since Slots 1-6 are NC on Pins #19 and #35, you could do some "surgery" and fix another Slot.... MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185126 Share on other sites More sharing options...
JamesD Posted February 25, 2015 Share Posted February 25, 2015 Since Slots 1-6 are NC on Pins #19 and #35, you could do some "surgery" and fix another Slot.... MarkO I considered hacking together a Mockingboard / Video board for slot 4 but that whole part where everyone else would have to do the same to get it to work got in the way. I suggested a similar mod on another machine (an even shorter jumper wire) and it didn't go over well. People seem to be allergic to solder. 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185228 Share on other sites More sharing options...
The Usotsuki Posted February 25, 2015 Share Posted February 25, 2015 (edited) Delorted, wrong thread. Edited February 25, 2015 by The Usotsuki 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185324 Share on other sites More sharing options...
MarkO Posted February 25, 2015 Share Posted February 25, 2015 I considered hacking together a Mockingboard / Video board for slot 4 but that whole part where everyone else would have to do the same to get it to work got in the way. I would go for that!!!! The more you get on a Card, the less Slots that are used... Design a Circuit Board in Eagle. Post it to OSHPark, under CC x.x license. Reduce the "Barrier to Entry" tremendously!!!! WE ALL WIN!!!!! I suggested a similar mod on another machine (an even shorter jumper wire) and it didn't go over well. People seem to be allergic to solder. Personally, I am only Allergic to the Paste, but that Chip Quik sure smells good... It even mentions, "Has a pleasant odor" on their Web Page.. Have you joined the FaceBook Group for Apple II Enthusiasts?? There is a thread on using the WIZnet 5100 Module in an Apple ][. I am looking for some SN74LS139's to make the 5100 Mapped into the Apple ][ Memory Space... MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185338 Share on other sites More sharing options...
MarkO Posted February 25, 2015 Share Posted February 25, 2015 (edited) Delorted, wrong thread. Sorry... Too Late.... A hybrid Mockingboard/Logo board with a 9938 would be about the bee's knees, but then one would need software of course... I suppose if one managed to dig up some NES hackers and MSX hackers it could be done, and of course I'm up to trying what I can, but I'm not a very good programmer. The Floggings will Continue, Until Moral Improves... Or ELSE!!!! MarkO Edited February 25, 2015 by MarkO Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185339 Share on other sites More sharing options...
The Usotsuki Posted February 25, 2015 Share Posted February 25, 2015 Oh geez. I forgot this was the "Demo IIe Interrupt Code" thread and not the "Arcade Board Pac-Man" thread, that's why I said that. Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185360 Share on other sites More sharing options...
JamesD Posted February 25, 2015 Share Posted February 25, 2015 I would go for that!!!! The more you get on a Card, the less Slots that are used... Design a Circuit Board in Eagle. Post it to OSHPark, under CC x.x license. Reduce the "Barrier to Entry" tremendously!!!! WE ALL WIN!!!!! Well, I looked up the parts needed to build a 9928 overlay board to combine video with the Apple output. The outputs from the 9928 need amps, there are two other chips to decode the Apple video and do the overlay but the circuit is much simpler than the one from back in the day. I need better docs on the 9938 to consider using it. The biggest problem with Mockingboard compatibility is chip size. When you have 2 VIAs, 2 AYs, a 9928, RAM, some glue logic, amps, etc... you need a pretty large card. If I didn't have to worry about Mockingboard compatibility, I would directly map the AYs. Having to program the AYs through the VIAs is slower and requires more code. I think just updating one AY register in my music player requires 8 extra instructions. Personally, I am only Allergic to the Paste, but that Chip Quik sure smells good... It even mentions, "Has a pleasant odor" on their Web Page.. Have you joined the FaceBook Group for Apple II Enthusiasts?? There is a thread on using the WIZnet 5100 Module in an Apple ][. I am looking for some SN74LS139's to make the 5100 Mapped into the Apple ][ Memory Space... MarkO If you still have a local RadioShack they might have the chips. They are under $4 on ebay, Mouser and Digikey have them... not a tough part to find really. I just looked at that project. It looks interesting. Seems to me the IIe timing is slightly slower than the II+ on some signals. Not sure if that has anything to do with the problem he's having or not. Without a logic analyzer it's pretty tough to know what is going on. 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185436 Share on other sites More sharing options...
The Usotsuki Posted February 25, 2015 Share Posted February 25, 2015 If I didn't have to worry about Mockingboard compatibility, I would directly map the AYs. Having to program the AYs through the VIAs is slower and requires more code. I think just updating one AY register in my music player requires 8 extra instructions. I know, it's insane. An AY8910 is an AY8910, but the Arcade Board's AY8910 is easier to work with than the one in the Mockingboard because it's right on the bus. There's another option - do it BOTH ways - but that might require a LOT of glue logic. If I were to design a board from scratch, I'd put the VDP starting at C0x0, and the PSG at C0x8 (not C0x5 like on the current design), and map read/write to the same address like the Logo board, not different addresses like the Arcade Board. That would at least gain the ability to rework it for a V9938 without breaking compatibility with a TMS9918 version. I'd argue even a GS could benefit from a V9938 card. 1 Quote Link to comment https://forums.atariage.com/topic/234547-issue-with-demo-iie-interrupt-code/page/2/#findComment-3185440 Share on other sites More sharing options...
Recommended Posts
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.