Search the web
Sign In
New User? Sign Up
mattelaquarius · Mattel Aquarius - Discovering the Mattel Aquarius home computer
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ML loading   Message List  
Reply | Forward Message #1205 of 1277 |
Re: ML loading

--- In mattelaquarius@yahoogroups.com, "harroldspier" <harrold.spier@...> wrote:
>
> I believe PACMR (and other games) use some kind of init code to copy the
application to a fixed location. If you disassembly the binary code of a game,
they all start with the same code sequence:
>
... snap
>
> Regards,
> Harrold
>

Funny, the procedure within z88dk that produces the CAQ file for the array has a
similar procedure, but it has been disabled.
You can find the file aquarius.c in the folder z88dk\src\appmake
Maybe if you enable this piece of code then it will work?

/* Mattel games loader relocator */
/*
writebyte(0x2A,fpout); // ld hl,(14552)
writeword(14552,fpout);
writebyte(0x23,fpout); // inc hl
writebyte(0x23,fpout); // inc hl
writebyte(0x4e,fpout); // ld c,(hl)
writebyte(0x23,fpout); // inc hl
writebyte(0x46,fpout); // ld b,(hl)
writebyte(0x11,fpout); // le de,67
writeword(67,fpout);
writebyte(0x19,fpout); // add hl,de
writebyte(0xe5,fpout); // push hl
writebyte(0xc5,fpout); // push bc
writebyte(0xe1,fpout); // pop hl
writebyte(0xb7,fpout); // or a
writebyte(0xed,fpout); // sbc hl,de
writebyte(0x52,fpout);
writebyte(0xe5,fpout); // push hl
writebyte(0xc1,fpout); // pop bc
writebyte(0xe1,fpout); // pop hl
writebyte(0x23,fpout); // inc hl
writebyte(0x7e,fpout); // ld a,(hl)
writebyte(0xb7,fpout); // or a
writebyte(0x28,fpout); // jr z,-4
writebyte(0xfb,fpout);
writebyte(0x11,fpout); // ld de,14768
writeword(14768,fpout);
writebyte(0xed,fpout); // ldir
writebyte(0xb0,fpout);

for (i=1;i<=41;i++)
writebyte(0,fpout);
*/

Regs
Martin




Thu Jul 2, 2009 2:52 pm

mvdsteenoven
Offline Offline

Forward
Message #1205 of 1277 |
Expand Messages Author Sort by Date

Any one have a recommendation on examples to look at to load Machine Language on Non-S2 hardware. I've been programming with z88dk. The examples run fine in...
Wm Lindsay
rabb_5m
Offline Send Email
Jun 29, 2009
3:55 am

... Hi Wil, Congratulations on finding an Aquarius with original ROM! We are all very envious. I remember reading that the original ROM is not that different...
mvdsteenoven
Offline
Jun 29, 2009
5:51 pm

Thanks for the response Martin! This is quite helpful and confirms the theories I've derived from your fantastic website! So it's true, my Array space is...
Wm Lindsay
rabb_5m
Offline Send Email
Jun 30, 2009
6:29 pm

... Perhaps PACMR is using relative jumps (JR) instead of hard coded jumps (JP). ... Take a look at the website...
mvdsteenoven
Offline
Jul 1, 2009
4:59 pm

... I believe PACMR (and other games) use some kind of init code to copy the application to a fixed location. If you disassembly the binary code of a game,...
harroldspier
Offline Send Email
Jul 1, 2009
8:24 pm

... Funny, the procedure within z88dk that produces the CAQ file for the array has a similar procedure, but it has been disabled. You can find the file...
mvdsteenoven
Offline
Jul 2, 2009
2:52 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help