|
From: Bernhard H. <Ber...@be...> - 2001-09-09 12:02:34
|
void printspeicherstelle(xdata unsigned char *stelle)
{
unsigned char dummy;
lcd_setadd(LCD_ZEILE3+5);
lcd_printhex(((unsigned) dummy) >> 8); // print adress
lcd_printhex(dummy);
lcd_printc(' ');
dummy =3D *stelle;
lcd_printhex(dummy);
lcd_printc(0x20);
lcd_printbin(dummy);
lcd_printc(0x20);
lcd_printc(0x27);
lcd_printc(dummy);
lcd_printc(0x27);
}
<German>
Wenn's das nicht gewesen sein sollte, kannst Du Dich gerne bei mir melden
und Dein Problem "ausdeutschen".
</German>
Bernhard
-----Urspr=FCngliche Nachricht-----
Von: "Matthias Wei=DFer" <wei...@t-...>
An: <sdc...@li...>
Gesendet: Donnerstag, 6. September 2001 20:12
Betreff: [Sdcc-user] Who to get data out of Pointer
> Hi
>
> i have this function:
>
> void printspeicherstelle(xdata unsigned char *stelle)
> {
> unsigned char dummy;
>
> lcd_setadd(LCD_ZEILE3+5);
> dummy =3D *stelle;
> lcd_printhex(dummy);
> lcd_printc(0x20);
> lcd_printbin(dummy);
> lcd_printc(0x20);
> lcd_printc(0x27);
> lcd_printc(dummy);
> lcd_printc(0x27);
> }
>
> i call this function like:
>
> printspeicherstelle(0x0012);
>
> It works fine. But there is one problem. I would like to have the conte=
nt
of
> the pointer (stelle) in a variable so that i can print the content to t=
he
> lcd. I hope you understand me. On the LCD should be a line like:
>
> ADDRESS DATA_in_HEX DATA_in_BIN DATA_in_ASC
>
> The last three things are working but who to get the adress out of the
> pointer?
>
>
> Matthias Wei=DFer
>
> Wer einen Rechtschreibfehler findet darf ihn behalten
>
> http://www.matwei.de/
> mat...@ma...
>
>
> _______________________________________________
> Sdcc-user mailing list
> Sdc...@li...
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
|