Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #5992

Re: Possibly stupid question about cc65 and the Language Card

From Colin Leroy-Mira <colin@colino.net>
Newsgroups comp.sys.apple2.programmer
Subject Re: Possibly stupid question about cc65 and the Language Card
Date 2023-01-06 18:05 +0100
Organization A noiseless patient Spider
Message-ID <20230106180515.3617a49b@SGX-CMP-480> (permalink)
References <20230106004202.19966041@SGX-CMP-480> <tp7ss9$ojis$1@solani.org>

Show all headers | View raw


Hi,

> > This gives good results on my Apple //c. I get ~3k more heap
> > available, and everything seems fine.  
> 
> :-))
> 
> > But the same programs crashes hard when emulated on MAME.  
> 
> :-(

Well. In fact, I also have crashes on the real hardware when pushing to
LC. They don't always happen, but I am quite sure there is something
fishy going on even if there's no dropping to the Apple 2's monitor. 
Sadly I'm very much not good enough at assembler to figure out if that's
something in my code, or something related to pushing code to the
language card. 

At the very least, cc65's .s generated files are exactly the same, with
offsets being just one or two off, when using code-name LC and not.

The vast majority of my code runs with absolutely no errors in its
libc/x86-64 form under Valgrind, but I also know that it doesn't make
sure there isn't some stupidity in the rare #ifdef __CC65__ parts, *or*
an integer/signed-unsigned overflow issue somewhere. I probably have an
issue, and it's probably just more visible with code in $D400-DFFF.

I've looked a lot at internet resources to figure out if I could
somehow get some higher level of debugging that I could handle, but
didn't find anything :/ Maybe my only choice is to try to build my
program for c64 and check with vice?

> > I noticed
> > that the `mame apple2c -listslots` does not list a language card
> > (contrary to `mame apple2 -listslots`.
> > 
> > Is this wrong, or am I wrong? Is there a way to verify the presence
> > of that card in my Apple //c?  
> 
> The 16kB Language Card upgraded an Apple ][ from 48kB to 64kB. All
> later Apple II came with at least 64kB - meaning that they all
> contain a "logic" Language Card.

Thanks for confirming that :)
-- 
Colin Leroy-Mira

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-01-06 00:42 +0100
  Re: Possibly stupid question about cc65 and the Language Card Oliver Schmidt <ol.sc@web.de> - 2023-01-06 01:18 +0000
    Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-01-06 18:05 +0100
      Re: Possibly stupid question about cc65 and the Language Card Oliver Schmidt <ol.sc@web.de> - 2023-01-07 09:39 +0000
        Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-08-15 17:03 +0200
          Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-08-15 22:28 +0200
            Re: Possibly stupid question about cc65 and the Language Card qkumba <peter.ferrie@gmail.com> - 2023-08-15 15:21 -0700
              Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-08-16 04:29 +0200
      Re: Possibly stupid question about cc65 and the Language Card fadden <fadden@fadden.com> - 2023-01-07 08:25 -0800
        Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-01-07 18:25 +0100
          Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-01-07 19:15 +0100
            Re: Possibly stupid question about cc65 and the Language Card qkumba <peter.ferrie@gmail.com> - 2023-01-07 19:32 -0800
              Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-01-08 11:41 +0100
                Re: Possibly stupid question about cc65 and the Language Card qkumba <peter.ferrie@gmail.com> - 2023-01-09 07:30 -0800
                Re: Possibly stupid question about cc65 and the Language Card Colin Leroy-Mira <colin@colino.net> - 2023-01-09 16:36 +0100

csiph-web