flat assembler
Message board for the users of flat assembler.
Index
> Linux > Using a 16bit mov doesn't work? |
Author |
|
SoLo2 09 Mar 2007, 03:57
Hello!
Here is some code that I thought it would run, but doesn't... Code: format ELF executable mov bx,var var db 0xAB It spits an error like Code: flat assembler version 1.67.21 (16384 kilobytes memory) test.fasm [3]: mov bx,var error: value out of range. This would run in an old i8086, why not in the i386 model? Greetings, soLo2[/code] _________________ ~~~~~~*~~~~~~~~~~~~~~~~~~~~~~~ http://thebitsclub.tripod.com/ http://so_o2.tripod.com/delfin.html http://so_o2.tripod.com/xmus.html http://www.geocities.com/mud_gallery/index.html |
|||
09 Mar 2007, 03:57 |
|
hidden 09 Mar 2007, 04:36
It's 32bit address, it can't be placed in 16bit register.
Code: format ELF executable mov ebx,var var db 0xAB |
|||
09 Mar 2007, 04:36 |
|
SoLo2 10 Mar 2007, 00:18
Hello!
Is there a way to program in 16bits mode? For example, "real" mode. Or in other words, if the original 8086 instructions, still available in the new CPUs, are there and do run well... can I manage to use a "mov bx,var" for example relative to CS or DS, like in genuine i86? Thanks! ~~~~~~*~~~~~~~~~~~~~~~~~~~~~~~ http://thebitsclub.tripod.com/ http://so_o2.tripod.com/delfin.html http://so_o2.tripod.com/xmus.html http://www.geocities.com/mud_gallery/index.html |
|||
10 Mar 2007, 00:18 |
|
SoLo2 10 Mar 2007, 16:49
I moved this topic to group "Main" as
it is system independent and more dependent on fasm. http://board.flatassembler.net/topic.php?p=54380#54380 |
|||
10 Mar 2007, 16:49 |
|
rugxulo 13 Mar 2007, 08:48
hidden wrote:
I don't do Linux (yet?), but here's what I know:
Quote:
ELKS (Introduction) wrote:
|
|||
13 Mar 2007, 08:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.