Printing 16-bit digit in assembler

Started by MIRKOSOFT, July 05, 2010, 08:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

Hi!

I have one problem.

I need to have area $4000 - $BFFF set as RAM0.

Also I need to use DIGIT routine which is in BASIC-HIGH area.

$8E32 - prints 16-bit digit stored LO in Xreg and HI in Acc. (the same routine has C64 at address $BDCD)

Know anybody other routine/similar to use in area $C000 and up? Only routine which prints 16-bit digit on screen...

Many thanks for every reply.

Miro
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk

BigDumbDinosaur

Everything that you need to know to accomplish this is in Mapping the Commodore 128.
x86?  We ain't got no x86.  We don't need no stinking x86!

MIRKOSOFT

I solved it with these steps:


If is subroutine in area $4000 - $bfff first I call mini subroutine located in area $1300- $3fff, there first I change bank to #15, call DIGIT routine and after set bank back and RTS.


It works correctly 'cause I'm changing bank with Yreg and routine DIGIT uses Xreg and Acc.
So, for now it is solved.
Miro
MIRKOSOFT of megabytes

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

http://www.mirkosoft.sk