[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [N8VEM: 10755] Re: N8 software



The CRT0.S file is in the HCBIOS20.ZIP archive.

'make all' is the only make you really should be using.

'make install' is broken.  It really needs to be edited out.

--John



On 07/25/2011 11:37 AM, nbreeden wrote:
I'm using SDCC 3.0.0 as well; SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/
TININative/ds400/hc08 3.0.0 #6037 (Oct 31 2010) (MINGW32)

Can I get a copy of the crt0.rel you are using for BIOS development
(having my hands on the source and hot having this one file makes
having the source less useful)?

-Neil


On Jul 25, 11:06 am, John Coffman <jo...@gmail.com> wrote:
Neil,
Yes, the crt0.rel used now is NOT the SDCC version (SDCC 3.0.0 for me).  I actually think the last 2.9.x version was more stable.  In any event, the SDCC version is not for the Z180 as we are using it.
        .org 0
        jp  0x100
        .org 8
        ret                         reti (for SDCC version)
        .org 0x10
        ret (my version)    reti (SDCC)
        ...
        .org 0x66
        retn                (I've seen, reti, ret, and other stuff here in various versions of SDCC)
Note that 'reti' is appropriate for Z80 used in IM 1;  'ret' is appropriate for IM 2 (which we'll be using on the Z180) since the location can only be called by an RST xx instruction, not by an interrupt source.
--John
P.S.:  I will be releasing another crt0.rel sometime in the future for CP/M user programs which will set 'argc' and 'argv' in the main program calling sequence.