$F13E & $BDCD equivalent routines for C128

Started by MIRKOSOFT, August 18, 2009, 01:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

MIRKOSOFT

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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

MIRKOSOFT

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
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk