[Coco] Assembler question
Helio Emery Jr.
helioemery at hotmail.com
Sun Aug 28 18:58:09 EDT 2011
Hey all,
I found what was doing.
It turns out it was a silly beginners mistake.
I was addressing a constant using U register indirect addressing, instead of pcr indirect addressing.
This is one of the things that makes an assembly programing much more dificult to learn.
The compiler does not help with this kind of mistakes...
And my program is now with some 300 lines of code, so it's not always ease to see those mistakes while learning.
Anyway,
Thanks everybody for helping a newbee.
Now the program works as it should.
See you soon here,
Helio
From: helioemery at hotmail.com
To: coco at maltedmedia.com
Subject: RE: [Coco] Assembler question
Date: Sun, 28 Aug 2011 18:16:23 -0300
Ok, so using either calls should guarantee the video going to graphics mode, but it doesn't...
Right now, this is the only way I know of changing from character mode to graphics mode in OS-9.
Anybody knows any other way?
The strange thing is that it works in C (but need to flush the buffer), and using DISPLAY directly from the OS-9 shell, but isn't working in Assembler.
Any ideas?
Thanks,
Helio
> To: coco at maltedmedia.com
> From: tlindner at macmess.org
> Date: Sun, 28 Aug 2011 14:08:48 -0700
> Subject: Re: [Coco] Assembler question
>
> Helio Emery Jr. <helioemery at hotmail.com> wrote:
>
> > At this point, the only thing I can think off is flushing the stdout
> > buffer.
> >
> > Do you know how to do this?
>
> The kernel calls I$Write and I$WriteLn don't buffer output.
>
> The C standard library (stdio) is what does the buffering in that
> language.
>
> --
> tim lindner
> tlindner at macmess.org Bright
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list