Article View: alt.lang.asm
Article #348Re: piece of code
From: John S. Fine
Date: Thu, 14 Jan 1999 00:00
Date: Thu, 14 Jan 1999 00:00
26 lines
1657 bytes
1657 bytes
"Frenzyr" wrote: > number1 dw 5 > > then in the code segment > > mov ax, number1 > > this isn't working, this doens't put the value '5' in ax... What assembler are you using? If it is NASM, you have a syntax error; It should be mov ax, [number1] If it is MASM (or some MASM compatible assembler) then the syntax is OK and either you have an ASSUME wrong or the contents of the ASSUME'd segment register are wrong. (I just noticed what other newsgroups this is going to, so I guess you are using TASM in a MASM compatible mode and you can ignore my NASM answer). -- http://www.erols.com/johnfine/ http://www.geocities.com/SiliconValley/Peaks/8600/
Technical Details
Message-ID:
<77l4p0$6ku$1@winter.news.rcn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<77l40a$3fp$1@winter.news.rcn.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: feaef,6f88259792fe2bb6 X-Google-Attributes: gidfeaef,public X-Google-Thread: f7d8d,6f88259792fe2bb6 X-Google-Attributes: gidf7d8d,public X-Google-Thread: 114917,6f88259792fe2bb6 X-Google-Attributes: gid114917,public From: "John S. Fine" <johnfine@erols.com> Subject: Re: piece of code Date: 1999/01/14 Message-ID: <77l4p0$6ku$1@winter.news.rcn.net> X-Deja-AN: 432576185 Content-Transfer-Encoding: 7bit Approved: <johnfine@erols.com> References: <77l40a$3fp$1@winter.news.rcn.net> To: "\"Frenzyr\" <frenzyr@writeme.com> Content-Type: text/plain; charset=us-ascii FCC: /d|/netscape/Mail/PostNews X-Mozilla-Status: 0801 X-Complaints-To: abuse@rcn.com X-Trace: 9+C33voAzaA1ZxHi8gT0DhVzFUSc0SzuQ6n2S41PgRw= Organization: none Mime-Version: 1.0 Reply-To: johnfine@erols.com NNTP-Posting-Date: 14 Jan 1999 16:08:00 GMT Newsgroups: alt.lang.asm,borland.public.tasm,comp.lang.asm.x86