-
From: Kevin Zee [mailto:psy...@hughes.net]
Sent: Tuesday, 5 May 2009 11:35 AM
To: Sdcc-user@lists.sourceforge.net
Subject: [Sdcc-user] Simple question for someone
I have gotten the libraries to build an am trying (unsuccessfully) to
make a custom putchar.c (I removed the putchar.s file). This
On May 4, 2009, at 11:21 PM, Kevin Zee wrote:
> Thanks for the info... That is exactly what I am doing (although my
> screen size is 80 by 40 and with attribute bytes like dos used to be).
> This is actually just an FPGA project to learn with. Implementing a
> z80,
> a 640x480 vga core (text only
Thanks for the info... That is exactly what I am doing (although my
screen size is 80 by 40 and with attribute bytes like dos used to be).
This is actually just an FPGA project to learn with. Implementing a z80,
a 640x480 vga core (text only so far), an SD card, etc. All running
software compil
I gather from elsewhere that your target is a Z80? If so, you need at least
an '-mz80' on the command line, thus you would use...
sdcc -mz80 putchar.c
On your code - I would comment that you're using a '=' on your if comparison,
you probably mean '=='. I would simplify the pointer declarations
nevermind... I think I figured it out.
Kevin Zee wrote:
> I have gotten the libraries to build an am trying (unsuccessfully) to
> make a custom putchar.c (I removed the putchar.s file). This is what I
> have so far:
>
> #include "memory.h"
> void putchar(char ch) {
> *(unsigned char *)pScre
I have gotten the libraries to build an am trying (unsuccessfully) to
make a custom putchar.c (I removed the putchar.s file). This is what I
have so far:
#include "memory.h"
void putchar(char ch) {
*(unsigned char *)pScreen = video;
*(unsigned char *)pX = caratx;
*(unsigned char *)pY