[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ciderpress for OS/X?
On Aug 13, 10:10 pm, lyricalnanoha
<lyricalnan...@usotsuki.hoshinet.org> wrote:
> Most peculiar.
>
>
>
> On Thu, 13 Aug 2009, datajerk wrote:
> > #include <stdio.h>
> > #include <stdlib.h>
> > #include <time.h>
>
> > void col80()
> > {
> > __asm__ ("jsr %w", 0xc300);
> > __asm__ ("lda %b", 0x36);
> > __asm__ ("sta %w", 0xbe30);
> > __asm__ ("lda %b", 0x37);
> > __asm__ ("sta %w", 0xbe31);
> > __asm__ ("lda %b", 0x38);
> > __asm__ ("sta %w", 0xbe32);
> > __asm__ ("lda %b", 0x39);
> > __asm__ ("sta %w", 0xbe33);
> > }
>
> Shot in the dark here.
>
> I wonder if this in a separate .s file and assembled with it would help.
>
> .export _col80
>
> _col80: jsr $C300
> lda $36
> sta $BE30
> lda $37
> sta $BE31
> lda $38
> sta $BE32
> lda $39
> sta $BE33
> rts
>
> It would still use the same prototype.
>
> -uso.
Thanks. Identical results as before.