Commodore 128 Alive!

Commodore 128 => 128 programmers => Assembly => Topic started by: MIRKOSOFT on August 18, 2009, 01:21 AM

Title: $F13E & $BDCD equivalent routines for C128
Post by: MIRKOSOFT on August 18, 2009, 01:21 AM
Hi!

I have simple problem:

At Commodore 64 was routine $F13E - pressed key from keyboard buffer to A (Accumulator). I need to use the same routine in C128, I was searching Mapping C128, but not found. This routine when has input device not keyboard, e.g. diskdrive, reads byte from there.

Second problem is routine $BDCD on C64 and its equivalent on C128.
This routine prints 16 bit. number to screen in decimal format (number is LO in X-register and HI in A (Accumulator)).

If you know equivalents of these routines, please help me.

Thanks for every reply.

Miro
Title: $F13E found / $BDCD not
Post by: MIRKOSOFT on August 18, 2009, 02:26 AM
So, I found alternative to $F13E from C64 to C128 - it's KERNAL routine $FFE4

...but my problems to print on screen 16 bit. digits in decimal format are still actually - on C64 it was through routine $BDCD

So, if you can help, please reply.

Thanks.

Miro
Title: Re: $F13E & $BDCD equivalent routines for C128
Post by: MIRKOSOFT on August 18, 2009, 06:47 AM
So, I found the equivalents...

C64 $BDCD = C128 $8E32 (X-LO byte/A-HI byte)

and C64 $F13E has equivalent C128 $FFE4 (get byte from input device)

Miro
EhPortal 1.34 © 2025, WebDev