flat assembler
Message board for the users of flat assembler.
Index
> DOS > what is wrong with Mov Dl, [Bx + Cx] ? |
Author |
|
DOS386 13 Jan 2008, 08:19
.
Quote: i try to use: 1. Famous old compiler bug: inappropriate report 2. Your bug: only BX, BP, SI and DI are available for indexing in 16-bit code 3. Please read FAQ on thread top about DOS and 16-bit (this bug isn't yet in, but I'll add it ASAP) EDIT : old thread here : http://board.flatassembler.net/topic.php?t=6823 _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug Last edited by DOS386 on 16 Jan 2008, 01:52; edited 2 times in total |
|||
13 Jan 2008, 08:19 |
|
Hobo 13 Jan 2008, 08:23
wow fast reply lol, i edited my origonal post, thinking that no-one would have replied yet, i figured out that i could use bx on its own like you said, but thanks for clearing it up further lol
|
|||
13 Jan 2008, 08:23 |
|
edfed 13 Jan 2008, 08:31
yes, DOS386 is THE hidden user, that is always connected, with revolution.
|
|||
13 Jan 2008, 08:31 |
|
Tomasz Grysztar 13 Jan 2008, 10:38
In the addressing expression symbols like AX and CX are not recognized as registers, because simply there are no such registers available for addressing. That's why assembler thinks when you write "cx", that you want to use some label of such name, but since such label is disallowed (as a reserved word), thus such error.
|
|||
13 Jan 2008, 10:38 |
|
LocoDelAssembly 13 Jan 2008, 16:13
Still somewhat unnapropiate error since after all you are trying to read it not define it. For example fasm says "Error: reserved word used as symbol" with 'cx = a', but with 'a = cx' says "Error: invalid value". IMHO, fasm should say either "Error: invalid address" or less desired but more acceptable than current error message "Error: invalid value" but NO what it currently says.
|
|||
13 Jan 2008, 16:13 |
|
System86 13 Jan 2008, 17:37
Why not have fasm generate an "Error: invalid address" whenever an illegal expression is used for an address? That will make a lot more sense than "Error: reserved word used as symbol" and should be simple to implement, since it will have the same logic whenever there's a syntax error or bad register used in an address.
|
|||
13 Jan 2008, 17:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.