Hi Chris, --- "Martin, Chris" <cmartin@ti.com> wrote: > Hi all, > > I have a piece of code that I have written and > compiled with cc65 and am > having trouble getting it to load from DOS 2.0. It > loads fine from > SpartaDOS 3.2, but I receive an ERROR 136 from DOS > 2.0. The code is > supposed to load to 0x3400-0x3c30 and to > 0x6000-0xa3d0. Error 136 is End of File, right? Is there something wrong with your second header? The size maybe? > It looks like DOS 2.0 has some code loaded all the > way up to 0x33xx, so > I modified my code to load past this. I also > adjusted the HEADER > location to no avail. That should only be the DOS menu up that high, and I think it will get overwritten by your program and reloaded on exit of your program. Changing the load address of the header won't do anything. > HEADER: start = $33f0, size = $6, file = %O; > RAM: start = $6000, size = $5c1f, file = %O; > BANK: start = $4000, size = $4000, type = ro; > SECHDR: start = $33f6, size = $4, file = %O; > RAM28: start = $3400, size = $1800, file = %O; > EXEHDR: load = HEADER, type = wprot; > CODE: load = RAM, type = wprot, define = yes; > BSS: load = RAM, type = bss, define = yes; > CHKHDR: load = SECHDR, type = wprot; > CODE2: load = RAM28, type = wprot, define = yes; > DATA: load = RAM28, type = rw; > RODATA: load = RAM28, type = wprot; > ZEROPAGE: load = ZP, type = zp; > AUTOSTRT: load = RAM, type = wprot, define = yes; Hmmm, what does your CHKHDR look like? I think it is a size thing. DOS 2.0 is returning End of File, so maybe you aren't calculating the size properly (or rather, since I think this is based on some code I gave you.. I'm not calculating it properly! LOL!) -- Shawn Jefferson __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Jul 29 19:00:31 2004
This archive was generated by hypermail 2.1.8 : 2004-07-29 19:00:39 CEST