C64 BTII: FILE0278460.PRG (CHAR DISK)

Any developer realated stuff
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

Weber G wrote: Fri Jan 08, 2021 2:28 pm You will have no success if you only use DirMaster. Please use Vice!
I do use Vice, but what am I meant to do with it in regards to this project exactly?
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

Having gotten as far into the code as I have, I can confirm that I am not, in fact, a giant pink bunny rabbit.

Progress continues...
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

Near the end of the ML code, right before the text strings begin, there is this data field.

Any hints on what it's for? :?

Code: Select all

95b3 eb  01	1	Begin Data Field; decimal value
95b4 e9  03	3
95b5 ed  07	7
95b6 e5  0f	15
95b7 f5  1f	31
95b8 d5  3f	63
95b9 95  7f	127
95ba 15  ff	255
95bb 2b  c1	193
95bc 2e  c4	196
95bd 29  c3	195
95be 3f  d5	213
95bf 22  d8	216
95c0 28  c2	194
95c1 3a  d0	208
95c2 0b  e1	225
95c3 0e  e4	228
95c4 09  e3	227
95c5 1f  f5	245
95c6 02  e8	232
95c7 08  e2	226
95c8 1a  f0	240
95c9 eb  01	1
95ca ea  00	0
95cb e8  02	2
95cc ea  00	0
95cd ee  04	4
95ce e2  08	8
95cf ea  00	0
95d0 ea  00	0
95d1 ea  00	0
95d2 eb  01	1
95d3 e9  03	3
95d4 ef  05	5
95d5 ed  07	7
95d6 ed  07	7
95d7 e3  09	9
95d8 eb  01	1
95d9 e9  03	3
95da e8  02	2
95db e8  02	2
95dc e8  02	2
95dd eb  01	1
95de eb  01	1
95df e9  03	3
95e0 eb  01	1
95e1 eb  01	1
95e2 eb  01	1
95e3 eb  01	1
95e4 e8  02	2
95e5 e8  02	2
95e6 e8  02	2
95e7 e9  03	3
95e8 e9  03	3
95e9 e9  03	3
95ea e9  03	3
95eb ee  04	4
95ec ee  04	4
95ed ee  04	4
95ee ee  04	4
95ef ef  05	5
95f0 ef  05	5
95f1 ec  06	6
95f2 ea  00	0
95f3 eb  01	1
95f4 e8  02	2
95f5 e9  03	3
95f6 ee  04	4
95f7 c9  23	35
95f8 c9  23	35
95f9 ce  24	36
95fa ce  24	36
95fb cf  25	37
95fc cf  25	37
95fd cf  25	37
95fe cf  25	37
95ff cc  26	38
9600 cc  26	38
9601 cc  26	38
9602 ae  44	68
9603 ae  44	68
9604 ae  44	68
9605 ae  44	68
9606 af  45	69
9607 af  45	69
9608 af  45	69
9609 af  45	69
960a 89  63	99
960b 89  63	99
960c 89  63	99
960d 8e  64	100
960e 8e  64	100
960f 8e  64	100
9610 8f  65	101
9611 8c  66	102
9612 e8  02	2
9613 ea  00	0
9614 ea  00	0
9615 ea  00	0
9616 ea  00	0
9617 eb  01	1
9618 eb  01	1
9619 e8  02	2
961a e8  02	2
961b e9  03	3
961c e9  03	3
961d ed  07	7
961e e5  0f	15
961f f5  1f	31
9620 d5  3f	63
9621 95  7f	127
9622 15  ff	255
9623 eb  01	1
9624 eb  01	1
9625 eb  01	1
9626 eb  01	1
9627 eb  01	1
9628 e8  02	2
9629 e8  02	2
962a e8  02	2
962b e8  02	2
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

There's also this data field, right before it.

Code: Select all

954f e5  0f	15	Begin Data Fields; decimal equivalent 
9550 e5  0f 	15
9551 f5  1f	31
9552 f5  1f	31
9553 f5  1f	31
9554 f5  1f	31
9555 f5  1f	31
9556 f5  1f	31
9557 ea  00	0
9558 e2  08	8
9559 e2  08	8
955a fa  10	16
955b ca  20	32
955c da  30	48
955d aa  40	64
955e ba  50	80
955f 5f  b5	181
9560 5f  b5	181
9561 5f  b5	181
9562 5f  b5	181
9563 ea  00	0
9564 aa  00	0
9565 6a  80	0
9566 2a  c0	192
9567 5e  b4	180
9568 5e  b4	180
9569 5e  b4	180
956a 5e  b4	180
956b ea  00	0
956c aa  40	64
956d 6a  80	128
956e 2a  c0	192
956f ea  00	0
9570 ca  20	32
9571 aa  40	64
9572 8a  60	96
9573 59  b3	179
9574 59  b3	179
9575 59  b3	179
9576 59  b3	179
Weber G
Posts: 125
Joined: Tue Dec 15, 2020 9:58 am

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Weber G »

No idea where you are? Is the addressing correct?

The following code is at 95B3:

Code: Select all

.C:95a0  20 06 08    JSR $0806		;text output
.C:95a3  4C AD 95    JMP $95AD
.C:95a6  A0 AF       LDY #$AF		;.@@
.C:95a8  A2 11       LDX #$11
.C:95aa  20 06 08    JSR $0806		;text output
.C:95ad  20 48 08    JSR $0848
.C:95b0  20 E2 A9    JSR $A9E2
.C:95b3  90 03       BCC $95B8
.C:95b5  4C F6 08    JMP $08F6
.C:95b8  20 9F 08    JSR $089F
.C:95bb  4C 13 93    JMP $9313
.C:95be  A0 00       LDY #$00
And at 954F I have:

Code: Select all

.C:9540  A0 AE       LDY #$AE		;, BUT MISSES!@@
.C:9542  A2 EB       LDX #$EB
.C:9544  20 06 08    JSR $0806		;text output
.C:9547  4C AD 95    JMP $95AD
.C:954a  A0 AE       LDY #$AE		;, AND HITS FOR 
.C:954c  A2 9A       LDX #$9A
.C:954e  20 06 08    JSR $0806		;text output
.C:9551  A5 45       LDA $45
.C:9553  85 38       STA $38
.C:9555  C6 38       DEC $38
.C:9557  85 63       STA $63
But in the combat engine there are a lot of data fields. The biggest one is at the end:

Code: Select all

.C:aa47  20 DD 9E    JSR $9EDD
.C:aa4a  A0 B0       LDY #$B0		;THE PARTY DISBELIEVES...
.C:aa4c  A2 CD       LDX #$CD
.C:aa4e  20 06 08    JSR $0806		;text output
.C:aa51  20 9F 08    JSR $089F
.C:aa54  C6 C0       DEC $C0
.C:aa56  A5 C0       LDA $C0
.C:aa58  C9 7F       CMP #$7F
.C:aa5a  D0 BA       BNE $AA16
.C:aa5c  A5 8A       LDA $8A
.C:aa5e  30 04       BMI $AA64
.C:aa60  A9 00       LDA #$00
.C:aa62  85 8A       STA $8A
.C:aa64  60          RTS

########## $AA65 - $CFFF
*C:aa65 oo______@hhp 0.P5555@.@.4444@.@.@ ..3333
*C:aa8d @8@8@9@9@:@:@;@M M.M.M@M M.M.M@N N.N.N@N
*C:aab5  N.N.N@O O.O.O@O O.Oacgo_?..ADCUHBPADCUH
*C:aadd BPa@b@dh@@@aceggiacbbbaacaaaabbbccccdddd
*C:ab05 eef@abcd##$$%%%%&&&DDDDEEEECCCDDDEFb@@@@
*C:ab2d aabbccgo_?..aaaaabbbb@@@@@@@@@@@@@@@@@@@
*C:ab55 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*C:ab7d @@@@@@@@o+>+U+^,A,"GIVE ME BLOOD, MEN!" 
*C:aba5 YOU SCREAM, AS YOU FACE .YOUR FOES SEEM 
*C:abcd ENDLESS, THEIR TALES UNKNOWN. YOU FACE .
*C:abf5 "DEATH AND DREK!" YOU CURSE, AS YOU SEE 
*C:ac1d .SNARLS OF DEFIANCE ARE HEARD FROM .DISS
*C:ac45 ENTION IN YOUR RANKS...DO YOU WISH TO CO
*C:ac6d NTINUE? .Y-N.@@.HOSTILE PARTY MEMBERS!@@
*C:ac95 . ADVANCE/S!@@.!@@.WILL YOUR STALWART BA
*C:acbd ND CHOOSE TO (F)IGHT OR (R)UN?.WILL YOUR
*C:ace5  STALWART BAND CHOOSE TO (F)IGHT, (A)DVA
*C:ad0d NCE, OR (R)UN?. HAS THESE OPTIONS THIS B
*C:ad35 ATTLE ROUND:@@.(A)TTACK FOES@.(P)ARTY AT
*C:ad5d TACK@.(D)EFEND@.(C)AST A SPELL@.(U)SE AN
*C:ad85  ITEM@.(H)IDE IN SHADOWS@.(B)ARD SONG@.@
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

I haven't EOR'd the address yet; that was the very last thing I was going to do.

Right before the text strings start, there's a field of 00s, and then right before that are the data fields I'm referring to.
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

I'm nowhere near intelligent enough to do this project.
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

So now that I've gone for a walk...

I spent a week attacking this file only to discover that I made a very early on transcription error, throwing the rest of the file out of sync.

I just deleted the entire thing, and am left with back to the beginning.
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: C64 BTII: FILE0278460.PRG (CHAR DISK)

Post by Darendor »

So after much thought, fear, and loathing, I managed to reconstruct the file. I think.

I will post it here once I'm done deciphering...things.

Oh, and I might have to reconsider whether I'm a giant pink bunny rabbit. :|
Post Reply