Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #349
| From | aiiadict@gmail.com |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | copying 6502 code from internet |
| Date | 2012-08-08 07:58 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <cb3ffe27-553e-4655-9ba0-ae0a49049225@googlegroups.com> (permalink) |
Merlin, my favorite assembler, chokes on code
SHIFT-INSerted into applewin while in the Merlin
editor... The OP codes, addresses, operands are
on the wrong tabs/horizontal text positions.
I copy 6502 assembler code with control-C from
newsgroups, web pages. It looks like this:
lda asdf ;comments are over here
label ora (var),y ;because 6502 code is tough
jmp offacliff ;to read without
jsr andontcomeback ;comments if you don't have hours
;to decipher it
I paste it into notepad, and do a find/replace.
find " " (two spaces, just push space bar twice
when in the FIND box), replace with " " (one
space, just push space bar once when in the
replace with box)
do this a few times and you end up with:
lda asdf ;comments are over here
label ora (var),y ;because 6502 code is tough
jmp offacliff ;to read without
jsr andontcomeback ;comments if you don't have hours
;to decipher it
select all of it, control-c to copy, and then
shift-INSert into applewin with the Merlin editor
running.
All properly aligned :-)
Rich
Back to comp.sys.apple2.programmer | Previous | Next — Next in thread | Find similar
copying 6502 code from internet aiiadict@gmail.com - 2012-08-08 07:58 -0700
Re: copying 6502 code from internet Egan Ford <datajerk@gmail.com> - 2012-08-08 11:58 -0600
Re: copying 6502 code from internet "Michael J. Mahon" <mjmahon@aol.com> - 2012-08-08 11:14 -0700
Re: copying 6502 code from internet David Schmidt <schmidtd@my-deja.com> - 2012-08-08 15:24 -0400
Re: copying 6502 code from internet Michael J. Mahon <mjmahon@aol.com> - 2012-08-08 15:36 -0500
Re: copying 6502 code from internet aiiadict@gmail.com - 2012-08-08 14:56 -0700
csiph-web