Jump to content
IGNORED

G2F and DLI mode?


Cybernoid

Recommended Posts

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'... :ponder:

 

Thanks,

~C

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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