PDA

View Full Version : as11 program


lday13
04-25-01, 10:46 AM
I have the nmiy-0020 board. I cannot assemble my program or even the lcd program that came with the board. I do not get any error messages or anything on the screen when I do the command: as11.exe [program name].s19 -l
I always get the same results in the .s19 file that the program generates. And, when I try to load that to the microprocessor, I get an error.

Bruce Juntti
04-25-01, 06:28 PM
You might try the ASEM-51 assembler by W. W. Heinz (search
for "asem-51" on Google). I have an NIMY-0031 development
board and I just download the .hex file to the board using
MAXTERM.

Bruce

Bruce Juntti
04-25-01, 06:32 PM
Sorry about the dumb first reply; you're using a devel. board with a Motorola micro on it, aren't you? If so,
my previous post won't, of course, help you.

Well, I tried.

Bruce

debbyangel
04-26-01, 04:38 PM
Try as11 filename -l
Debby

nmitech
05-04-01, 10:20 AM
lday13,


The AS11 freeware will not catch all the errors when it trys to generate the S19 file. You must manually scroll through your listing file to look for it.

Please tell us more about Your downloading procedures and the errors you got.
- I assume you used the Buffalo monitor and MAXTERM program to downdoad the S19 file. If so in MAXTERM just make sure you change the PACING character to decimal 0. Manufacture default for Max-FORTH at decimal 10. Once you have the PACING character changed to zero, at the buffalo prompt, enter LOAD T then press ALT D now enter your S19 file and hit the ENTER key. You will see the S19 file will display line by line on the screen. Once the S19 is loaded, enter G <address> and press ENTER key to execute your program.

Also Your code address must stay within the ram (memory) available on board. Otherwise you will see the error message "too long"... when you download.

jya
05-29-01, 04:42 PM
Your problem probably has to do with memory configuration, and I don't have an immediate suggestion. I had a problem with AS11 giving phasing errors between pass one and pass two when writing code for page zero. I found a freeware assembler I like, pass11, in a Google search. It's at http://pc1-archbo.bot.unibas.ch/~pascal/home.html

Pass11 assumes extended addressing for both passes, so avoiding as11's phase errors. It issues a warning for an extended reference to a page-zero ("direct") address, and you can force direct addressing with an asterisk after the opcode (at which point, of course, the warning goes away).

It can make object or S-record output, and the list file includes a symbol table.

Flash to General: how about including the URL in the MaxFORTH docs?

Jerry

dbacon
06-18-01, 12:52 PM
Norton Antivirus just reported that the "W95.Hybris.worm" virus
was found in "C:\NMIY0020\AS11\AS11.EXE" which I installed
from the floppy sent with the "68HC11 CPU Microcontroller w/ Free
Languages" I bought from New Micros on eBay.

Looking through these directories I find "AS11.EXE" in the AS11
directory containing 23,040 bytes and another "AS11.EXE" in the
"SMALLC" directory with 19,825 bytes.

Are either of these files the correct size?

Don Bacon

jya
06-18-01, 03:27 PM
My AS11 tests clean (I've had it for a few years). It's date stamp is Wed, Dec 9, 1987 10:50:02 AM and the size is 19,825 bytes. It seems that you already have a clean copy.

I have found other '11 assemblers free for downloading that are in some ways preferable to AS11. PASS11 is my favorite. It and other freeware are available at http://pc1-archbo.bot.unibas.ch/~pascal/home.html

Jerry

dbacon
06-22-01, 04:13 PM
The "infected" "As11.exe" that came in the NMIY0020.ZIP file on the distribution disk that
came with the "NMIY0020" I ordered from NewMicros is the one that extracts to the
"as11\" directory.

The copy of "As11.exe" that extracts to the "smallc\" directory is the size you listed.

Both versions have the date/time stamp you gave.

There is a file in the "zip" that extracts to "as11\" with the same data/time
and the correct size which is named: "AS11.ex$".

The "zip" file on the floppy was touched Mar 3, 2001 07:00 AM. The infection
probably got in somewhere around then. Since you've had yours for years
your original "zip" file will certainly be dated earlier. The newest file in this
"zip" carries a date of Sep 6, 2000 11:36 AM ("Rtc62421.txt").

Just trying to sort out how and when an infected file got onto a NewMicros software
distribution floppy. I know which to use and not use.

Don Bacon

jya
06-22-01, 05:30 PM
You seem to be set then. I think it's important to try to figure out if the distribution disk became infected before or after it came to you. If there's any possibility that it was infected when you got it, the NMI people should certainly be informed (but they presumably read these messages).

Have you looked at Pascal's macro assembler? I like it because AS11 generates phasing errors for page zero accesses, and PASS11 doesn't. (AS11's phasing error happens when it allows room for an extended address on the first pass, then uses a direct address on the second pass because it will do. That is a byte shorter, and symbol table is wrong. The next time it's referred to, boom: error.)

PASS11 also allows room for an extended address on the first pass, but it doesn't switch on the second pass. It warns that a byte and cycle have been wasted, but the program will assemble and run. If you know that a reference is to page zero, you can flag the op code with a '*' and get efficient code. (If SIZE is a location in page zero, LDAB SIZE generates an extended address and a warning, and LDAB* SIZE generates a direct address.)

Jerry