Jump to content
Sign in to follow this  
Cybernoid

G2F and DLI mode?

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

Share this post


Link to post
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).

Share this post


Link to post
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

 

Duh! You know if I would actually read the comments, I wouldn't have asked... :roll: :D

 

~C~

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

hmm, perhaps there is some data written within the memory used by DUP?

Try to relocate your datas.

Share this post


Link to post
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

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...