Correction to my instructions below:
The cload "SAMPLE.CO" should be:
loadm "SAMPLE.CO"
I have been using CloudT too much lately I guess (if there is such a
thing) and have "cload" drilled into my brain! ;-)
Ken
On 1/7/23 9:17 AM, Ken Pettit wrote:
Hi Alex,
I have one simple example in my Personal Libraries section at
club100.org. It is under "Ken Pettit -> VirtualT IDE -> Sample"
It is a very simple ASM project simply to show the features of the
VirtualT IDE / Assembler and linker. The Assembler in VirtualT
assembles each .ASM file individually into an object file, then links
them using details in a linker script (*.lkr). It supports absolute
code sections, relative code sections and data sections (.aseg, .cseg
and .dseg respectively). The sample project shows use of each of
these features, including using multiple .ASM files with PUBLIC /
GLOBAL keywords to share variables and code routines between them.
There is a README with the sample project that describes how to build
it, etc. You have to launch VirtualT and then choose Tools menu ->
Assembler IDE. Note that while the IDE *does* have a syntax
highlighting editor, it is fairly limited with regards to features.
For instance, UNDO can only undo the last change and no more. If I
could win the CA Lottery $1.1B then I could just sit around all day
refining my Model T projects including VirtualT updates. I'll let you
know when that happens :)
The README describes how to use the sample code, but in general after
you build it, VirtualT will auto-load the .CO file to the emulation.
Then just go to BASIC and run it. Note that each time you change the
.CO, you have to redo the cload "SAMPLE.CO" (or whatever your real
project name is) because VirtualT only updated the actual .CO file,
but doesn't update the image at 62000 (or wherever you are running
your .CO).
clear 256,62000
cload "SAMPLE.CO"
call 62000,1
-> prints "Hello World!'
a$="Good Morning"
call 62000,2,varptr(a$)
-> prints "Good Morning"
call 62000,3,512
-> Save 512 in a local variable
call 62000,4
-> prints "Value = 512"
call 62000
-> prints usage help
Ken
On 1/7/23 8:34 AM, Alex ... wrote:
Do you have any examples out there for how to build ML apps or option
ROMs with VirtualT?
On Tue, Jan 3, 2023 at 3:54 PM Ken Pettit <[email protected]
<mailto:[email protected]>> wrote:
Hi,
Willard Goosey (on this list) did some work a while back for
compiling with SmallC-85 and put together an M100 library for the
same:
http://www.sdc.org/~goosey/m100/m100smallc0.0.10.zip
<http://www.sdc.org/%7Egoosey/m100/m100smallc0.0.6.zip>
This file is also available in his Personal Libraries section at
Club100. I have not tried to use SmallC-85 or the library to
build and C applications for the Model 100. I typically write in
8085 assembly directly or a mix of BASIC and assembly. There are
various 8085 assemblers out there, though I have only ever used
the one I wrote that lives inside VirtualT.
Ken
On Mon, Jan 2, 2023 at 4:45 PM DJCC <[email protected]
<mailto:[email protected]>> wrote:
Hi there!
I've been dreaming about getting a Tandy 102 for forty years
and I just recently got two (!!!) for a decent price on eBay.
I'm a programmer by trade and like the idea of writing
something for it. What does the toolchain look like nowadays
for building Tandy 100/102 programs in assembly? Or, if I'm
dreaming, in C?
Searching the archives, I've found
http://www.sdc.org/~goosey/
<http://www.sdc.org/%7Egoosey/> with dev resources. Are there
others that might be interesting?
Thanks!
djcc
--
Disclaimer: Any resemblance between the above views and those of my
employer, my terminal, or the view out my window are purely
coincidental. Any resemblance between the above and my own views is
non-deterministic. The question of the existence of views in the
absence of anyone to hold them is left as an exercise for the reader.
The question of the existence of the reader is left as an exercise
for the second god coefficient. (A discussion of non-orthogonal,
non-integral polytheism is beyond the scope of this article.) Thanks
/usr/games/fortune