Post Reply 
Displaying String on Free42 & DM42
04-07-2018, 09:07 AM
Post: #14
RE: Displaying String on Free42 & DM42
Hi Bill.
To double the font's width and height, each pixel has to become a block of 4 pixels.
Horizontally, that is simple: just draw the character twice. Vertically, however, it amounts to converting eg 53 = 110101b to 111100110011b or 3891.
No need to figure out how I did in in the routine I posted as I found a faster, shorter and easier way (triple win!):

Code:
 128
 /
 7
 X<>Y
>LBL 03
 IP
 RCL+ ST L
 STO+ ST X
 DSE ST Y
 GTO 03
 3
 *

The loop is used to space the bits apart, and the 3 * doubles them.
DSP2XY is still quite slow though.

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Displaying String on Free42 & DM42 - Werner - 04-07-2018 09:07 AM



User(s) browsing this thread: 4 Guest(s)