[Coladam] SmartBASIC Routines from ML

tscott at magiqueproductions.com tscott at magiqueproductions.com
Mon Oct 10 20:06:37 CEST 2011


In Guy Cousineau's article on calling ML from SmartBASIC, he talks about
accessing some SmartBASIC routines from ML, such as:

=======================================================
If you intend to use complex machine language routines, you may
occasionally want to print something to the screen. Here you can make use
of 2 routines which already exist in SMARTBASIC:

PRINT CHARACTER IN A resides at 11994. Thus if you want to print a
question mark, you simply do:

LDA,'?'
CALL 11994

If you want to print a message, you can use the length_encoded routine at
12110:

LDHL,MESSAGE
CALL 12110
.....
MESSAGE:

DB14;length of message
DB13;a carriage return
DB'Guy Cousineau'
=======================================================

OK, this is very cool. So I was wondering if there are more SmartBASIC
routines accessible through ML? Specifically, what about the routines for
blitting shapes in hires mode along with rotating and scaling them? I
would love to write a game using vector-like graphics. Having access to
those routines in ML would speed things up tremendously without the need
to write a bunch of hi-res graphics code to accomplish the same task.

Tommy


More information about the Coladam mailing list