![]() |
Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
hello, I have copied a nice small program out of my assembly book that won't compile. I was wondering if somebody might know why? .MODEL SMALL .STACK 100H .DATA name_msg DB 'Please enter your name: ',0 query_msg DB 'How many times to repeat welcome msg? ',0 confirm_msg1 DB 'Repeat welcome msg ',0 confirm_msg2 DB ' time (y/n) ',0 welcome_msg DB 'Welcome to Assembly Language Programming ',0 user_name DB 16 DUP (?) ;Buffer for user name response DB ? .CODE INCLUDE io.mac main PROC .STARTUP PutStr name_msg nwln GetStr user_name,16 nwln ask_count: PutStr query_msg GetInt CX nwln PutStr confirm_msg1 PutInt CX PutStr confirm_msg2 GetCh response nwln cmp response,'y' nwln jne ask_count display_msg: PutStr welcome_msg PutStr user_name nwln loop display_msg .EXIT main ENDP END main I get these errors: test.asm:1: parser: instruction expected test.asm:1: attempt to define a local label before any non-local labels test.asm:2: parser: instruction expected test.asm:2: attempt to define a local label before any non-local labels test.asm:3: attempt to define a local label before any non-local labels test.asm:10: comma expected after operand 1 test.asm:14: parser: instruction expected test.asm:16: parser: instruction expected test.asm:18: parser: instruction expected test.asm:20: parser: instruction expected test.asm:21: symbol `nwln' redefined test.asm:23: parser: instruction expected test.asm:23: symbol `PutStr' redefined test.asm:24: parser: instruction expected test.asm:25: symbol `nwln' redefined test.asm:26: parser: instruction expected test.asm:26: symbol `PutStr' redefined test.asm:27: parser: instruction expected test.asm:28: parser: instruction expected test.asm:28: symbol `PutStr' redefined test.asm:29: parser: instruction expected test.asm:30: symbol `nwln' redefined test.asm:32: symbol `nwln' redefined test.asm:35: parser: instruction expected test.asm:35: symbol `PutStr' redefined test.asm:36: parser: instruction expected test.asm:36: symbol `PutStr' redefined test.asm:37: symbol `nwln' redefined test.asm:40: parser: instruction expected test.asm:40: symbol `main' redefined test.asm:41: parser: instruction expected I used the command nasm test.asm Anyway I am greatly confused - I thought I understood 'At Least a little bit' Thanks for the help, Anthony - Subcription/unsubscription/info requests: send e-mail with "subscribe", "unsubscribe", or "info" on the first line of the message body to discuss-request at blu.org (Subject line is ignored).
![]() |
|
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |