| |
Krill
Registered: Apr 2002 Posts: 2982 |
Release id #209982 : Transwarp v0.82
General Q&A thread, also report problems and error logs here. |
|
... 70 posts hidden. Click here to view all posts.... |
| |
Zaphod
Registered: Jun 2012 Posts: 63 |
well te decrunch breaks tranwarp.
krill explains that this is because the decrunch table clobbers some of it's stuff.
anyway i thought i was beign clever with my lil asm, but of course the load overwrites my asm. which means i need to manually push an address ($080d) onto the stack and jmp into the load instead of JSR
so how do i do that? is it
lda #0d
pha
lda #08
pha
jmp $ffd5 |
| |
Krill
Registered: Apr 2002 Posts: 2982 |
I recommend to do something like i did in the intros of the 3 dual-load games.
This is from the Giana Sisters intro:.C:0c20 A9 01 LDA #$01
.C:0c22 05 B9 ORA $B9
.C:0c24 85 B9 STA $B9
.C:0c26 A9 01 LDA #$01
.C:0c28 A6 BA LDX $BA
.C:0c2a D0 02 BNE $0C2E
.C:0c2c A2 08 LDX #$08
.C:0c2e A4 B9 LDY $B9
.C:0c30 20 BA FF JSR $FFBA
.C:0c33 A9 0D LDA #$0D
.C:0c35 A2 40 LDX #$40
.C:0c37 A0 01 LDY #$01
.C:0c39 20 BD FF JSR $FFBD
.C:0c3c A2 0C LDX #$0C
.C:0c3e BD 52 0C LDA $0C52,X; name
.C:0c41 9D 40 01 STA $0140,X
.C:0c44 CA DEX
.C:0c45 10 F7 BPL $0C3E
.C:0c47 A9 08 LDA #$08
.C:0c49 48 PHA
.C:0c4a A9 0C LDA #$0C; $080d - 1
.C:0c4c 48 PHA
.C:0c4d A9 00 LDA #$00
.C:0c4f 4C D5 FF JMP $FFD5 |
| |
Zaphod
Registered: Jun 2012 Posts: 63 |
i had that backwards.
i now have the file loading the next one and starting properly. this will load ANY packed main program, provided i has sys 2061 :)
and now to try and transwarp master. |
| |
Zaphod
Registered: Jun 2012 Posts: 63 |
and g-packer broke the logo SOMEHOW.
it was fien before gpacker tried it.. hmmm...
yup. g-packer completely nurders it somehow. i can load it fine before packing it, and if i run the ml routine in the monitor, it works.
g-packer doesn't kill the transwarp either. but the graphics are corrupt, for no good reason.
i'll see if plush packer works... |
| |
Zaphod
Registered: Jun 2012 Posts: 63 |
plushpacker didn't break the logo, but broke the transwarp. i used the fast packer.
g-packer breaks the logo, but doesn't break the transwarp. WAAAAGGGGHHHH! |
| |
Krill
Registered: Apr 2002 Posts: 2982 |
A word about the new challenge:
As the last one was so swiftly and throughly beaten, i decided to make an effort this time.
The key is now 232 bits (29 bytes) big, provided as a passphrase string in the 4th load parameter. LOAD"CHALLENGE",8,1,"SECRET KEY..." The passphrase itself isn't used as the key. There is some kind of 8-bit ghetto key hashing performed first, hoping that known parts of the key will not make it easier to find the other parts of the key and ultimately the passphrase.
Note that both the encryption routine (C) and the decryption routine (6502 assembly) are open-source.
Happy hacking! =) |
| |
Comos
Registered: May 2004 Posts: 73 |
Quoting Zaphodwell te decrunch breaks tranwarp.
krill explains that this is because the decrunch table clobbers some of it's stuff.
OK,understood,then try to relocate the decrunch table to $0500.You'll just see some garbage during depack,you can switch off the screen during that. |
| |
Zaphod
Registered: Jun 2012 Posts: 63 |
ok i give up.
http://eunich.cochems.com/~zaphod/helpme.d64
two files on it
one is the logo, with my little ml routine i mentioned at the end of it.
the other is a 202 block monitor save of $08f0 to $D0A0, which is where the main vorpal file is.
my routine is as $7f3f
the logo must be called "koronis rift" and when transwarped must fit into tracks 19-21 (-r 19)
the main must be called "copyright 1985" and fit from tracks 16 to 7 (the docs do not say that -r counts backwards if it's under 18 for transwarp files) (-r 16)
no other space on the disk can fit transwarp files.
there should be no audio glitches, and the screen should bank after showing the logo (my routine does this)
transwarp itself can be fit anywhere else on the disk that's convenient (but not clobber anything else. i have a "blank" .d64 that has the blocks that should be allocated allocated, and the ones that should be free free.
JUST before 08f0 (08ed), there is a JSR $3187. this may or may not be used. it's easy enough to put back there. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11391 |
Quote:$08f0 to $D0A0
doesnt that destroy the resident part of the loader? |
| |
Krill
Registered: Apr 2002 Posts: 2982 |
The loader can't load to $d000+ anyways. I guess the program would be minimally packed* to end below $d000. It uses its own loader anyways.
* Meaning to just copy those $a0 bytes from below $08f0 to $d000. =) |
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 - Next |