0 Members and 2 Guests are viewing this topic.
Copy("prgmNAME",33912,9asm(EF7C4E)
Woah, that's pretty nice. I knew that you could do it from an app, but I didn't imagine that it could work from program-to-program.Incidentally, where is 33912? Does it corrupt any other data? And would using Return in the called program return to the homescreen or return to the parent program?
can you call the program within the program that is being called?
It doesn't work... it always crash.
.AAADisp "ONE...",iCopy("prgmAAAA",33912,9Asm(EF7C4EDisp "...ONE.",iPause 2000
.AAAADisp "TWO",i
9D95: ld hl, 9DC3 ; Disp "ONE...",i bcall(_450A) bcall(_452E) ld hl, 9DCAh ; Copy("prgmAAAA",33912,9 push hl ; Load arguments in a complicated fashion ld hl, 8478h ld bc, 0009 ex de, hl pop hl ldir ; Copy the data ldir ; Clobber all of RAM ld c, (hl) ; ??? ld hl, 9DD0h ; Disp "...ONE.",i bcall(_450A) bcall(_452E) ld hl, 07D0h ; Pause 20009DBB: djnz 9DBB dec hl ld a, l or h jr nz, 9DBB ret ; End of program code9DC3: .db "ONE...", 09DCB: .db ProgObj, "AAAA", 09DD0: .db "...ONE.", 0
9D95: ld hl, 9D9F ; Disp "TWO",i bcall(_450A) bcall(_452E) ret ; End of program code9D9F: .db "TWO", 0
(6:43:18 PM) DrDnar: Runer112: I found an Axe bug, see http://ourl.ca/15239/286978(6:43:32 PM) Runer112: I saw(6:43:39 PM) DrDnar: k(6:43:53 PM) Runer112: I can tell you it's a peephole optimizer problem(6:44:00 PM) Runer112: so you can fix it by compiling without peephole opts [Use ZOOM---DrDnar](6:44:08 PM) Runer112: but I can't tell you why it's happening(6:44:48 PM) Runer112: I'm sure Quigibo will know it's a peephole optimizer problem too(6:44:51 PM) Runer112: it's pretty clear