Start Addres
Start Addres
how can I find start addres of machine program.
Re: Start Addres
I found this simple code which inhibits autorun and gives start and end of machine code routines loaded
DOKE #400,#A948:DOKE #402,#8D00:DOKE #404,#02AD:DOKE #406,#4C68:DOKE #408,#EE22:DOKE 522,#400
I guess this put a simple code to #400 and hook the the interrupt to block autorun. After loading, DEEK(#2A9) gİves start adress of the code and DEEK(#2AB) gives the end.
So, CALL DEEK(#2A9) runs the program
DOKE #400,#A948:DOKE #402,#8D00:DOKE #404,#02AD:DOKE #406,#4C68:DOKE #408,#EE22:DOKE 522,#400
I guess this put a simple code to #400 and hook the the interrupt to block autorun. After loading, DEEK(#2A9) gİves start adress of the code and DEEK(#2AB) gives the end.
So, CALL DEEK(#2A9) runs the program
Re: Start Addres
You can open the TAP file in an hex editor and look at the header.Alsoft wrote:how can I find start addres of machine program.
More details on this post http://forum.defence-force.org/viewtopic.php?f=19&t=201
-
- Squad Leader
- Posts: 774
- Joined: Sat May 21, 2011 7:21 pm
- Location: Between UK and France
- Contact:
Re: Start Addres
The first post is quite strange.
Of which program? Of the ROM? Of a program loaded from a tape? a floppy? something else?
Without more information it would be really difficult to answer.
Of which program? Of the ROM? Of a program loaded from a tape? a floppy? something else?
Without more information it would be really difficult to answer.
My Projects: Replic'Oric Project - StratoCumulus Project