Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #1211

Re: ca65 on the Mac, AppleScript to launch Virtual ][

From Egan Ford <datajerk@gmail.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: ca65 on the Mac, AppleScript to launch Virtual ][
Date 2014-04-09 00:51 -0400
Organization XMission http://xmission.com/
Message-ID <li2jkn$1c8$1@news.xmission.com> (permalink)
References <15407afd-e998-4006-9a39-a549967d0820@googlegroups.com>

Show all headers | View raw


On 4/9/14, 12:04 AM, Chris Torrence wrote:
> So I've been doing some assembly language programming using ca65 on the Mac.

A possible quicker alternative if you do not need DOS or PRODOS:

1.  make
2.  c2t -p -l prog,start_address | pbcopy
3.  cmd-v into monitor prompt
4.  start_addressG

c2t -p -l prog,start will produce something like this to stdout:

0800: 20 A9 0E 20 A9 0E A9 8F A0 02 20 96 0E F0 15 31 30 30 30 20 44 49 
47 49 54 53 20 4F 46 20 50 49
0820: 20 3D 20 00 8D 01 E1 20 C0 02 8D 01 E2 8D 1B E1 A9 80 A0 11 20 DC 
0D 8D 1B E2 20 A9 0E 4C 1F FF
0840: 8D 1A E1 A9 80 A0 11 A2 05 20 38 03 8D 1A E2 8D 15 E1 A9 80 A0 11 
20 E3 04 8D 15 E2 8D 15 E1 A9
....

I just put this in my Makefiles:

%.mon: %
     $(C2T) -l $<,$(STARTADDR) $@

That will create a .mon file, e.g.:  c2t -l milltest2,800 milltest2.mon

Then (cat milltest2.mon; echo 800G) | pbcopy

Then CMD-V into Virtual ][

I say its faster because if I do not crash the IIe I can quickly test 
code over and over again without a reboot.

BTW, thanks for the AppleScript.  Something that I need to spend more 
time learning.

P.S. Virtual ][ install registers .DSK files as a Virtual ][ filetype. 
So, if I want to boot a .DSK I just type "open filename.dsk", and 
Virtual ][ boots a IIe and loads the disk.  After testing it's CMD-Q, 
CMD-D, return to shutdown.  Then edit, make, open filename.dsk, etc... 
all over again.  No mouse needed.

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

ca65 on the Mac, AppleScript to launch Virtual ][ Chris Torrence <gorthmog@gmail.com> - 2014-04-08 21:04 -0700
  Re: ca65 on the Mac, AppleScript to launch Virtual ][ Egan Ford <datajerk@gmail.com> - 2014-04-09 00:51 -0400

csiph-web