Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: PEXEC Mode 3
Posted by: evil Apr,27.2009-08:09 

As Mikro says, it definity works on Falcon, the 20 year megademo uses it :-)

Here is the source from the 20 years demo:

pea null ;env
pea null ;cmd
pea filename ;filename
move.w #3,-(sp) ;load
move.w #$4b,-(sp) ;pexec()
trap #1
lea.l 16(sp),sp

tst.l d0
bmi.s exit

move.l d0,save_adr ;bp addr

pea null ;env
move.l save_adr,-(sp) ;bp addr
pea null ;fn
move.w #4,-(sp) ;go
move.w #$4b,-(sp) ;pexec()
trap #1
lea.l 16(sp),sp

move.l save_adr,-(sp) ;mfree
move.w #$49,-(sp)
trap #1
addq.l #6,sp


By comparing them it's easy to see that you correct the stack with 6 bytes too little.

--
Anders Eriksson
ae@dhs.nu








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
PEXEC Mode 3 Shw Apr,26.2009-19:23
  Re: PEXEC Mode 3 mikro Apr,26.2009-20:16
  Re: PEXEC Mode 3 evil Apr,27.2009-08:09
    Re: PEXEC Mode 3 evil Apr,27.2009-08:16
  Re: PEXEC Mode 3 evil Apr,27.2009-13:10
    Re: PEXEC Mode 3 Shw Apr,27.2009-14:01


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson