Cybernoid #1 Posted November 29, 2004 Hi all! I have a quick question about create ASM code with G2F in DLI+ mode. Where can I put code for exiting the G2F code? I see sections for VBI and DLIs but where can I put normal code? For example, I want to exit on a key hit: lda $02fc cmp #$ff bne MYEXIT Where can I put this in the code? In GED mode, I put this right before the 'jmp LOOP'... Thanks, ~C Quote Share this post Link to post Share on other sites
pps #2 Posted November 29, 2004 You´ll have to put your routines inbetween the VBI just behind this comment: ;*- this area is for yours routine, register X,Y must survive But don´t forget this is called every 1/50 (PAL) or 1/60 (NTSC) second. And you´ll have to reinit the nmi vector ($fffa). Quote Share this post Link to post Share on other sites
Cybernoid #3 Posted November 29, 2004 You´ll have to put your routines inbetween the VBI just behind this comment: ;*- this area is for yours routine, register X,Y must survive Duh! You know if I would actually read the comments, I wouldn't have asked... ~C~ Quote Share this post Link to post Share on other sites
Cybernoid #4 Posted November 30, 2004 Hmm, also I did not notice this before, but Heaven included source code for a thrust G2F screen: http://www.atariage.com/forums/viewtopic.php?t=60778. Thanks Heaven! This mostly worked to get back to DOS... I can now reach the DOS screen again, but it is locked up. I am looking at it more... Thanks! Quote Share this post Link to post Share on other sites
pps #5 Posted November 30, 2004 hmm, perhaps there is some data written within the memory used by DUP? Try to relocate your datas. Quote Share this post Link to post Share on other sites
Cybernoid #6 Posted November 30, 2004 Hmm, I am not really using DUP, but rather a modified DOS 2.0 that allows loading AUTORUN.SYS, then AUTORUN1.SYS and AUTORUN2.SYS. I have 2 G2F screens in one binary (AUTORUN.SYS). I can press start from the first one and it starts booting from AUTORUN1.SYS. I can then press Option to get to the second screen, but when I try to exit it hangs up the emulator. The first screen is GED+. The second screen is DLI. Things that make you go hmm.... Thanks, ~C Quote Share this post Link to post Share on other sites