flat assembler
Message board for the users of flat assembler.
Index
> Main > a20 line/bit |
| Author |
|
|
windwakr 13 Nov 2008, 22:42
EDIT: I have no helpful answer so,
heres some pages about A20 http://www.win.tue.nl/~aeb/linux/kbd/A20.html http://wiki.osdev.org/A20_Line http://www.osdever.net/tutorials/a20.php Last edited by windwakr on 13 Nov 2008, 22:51; edited 2 times in total |
|||
|
|
bogdanontanu 13 Nov 2008, 22:49
mov eax,[1 shl 20] is the correct answer.
In electronics the address buss does start from A0, A1, A2 ... A19, A20, A21 ... A31 for 32 bits. IF you would have done a simple calculation THEN you would have noticed that (1 shl 20) is in fact exactly 1 Mega byte. |
|||
|
|
baldr 13 Nov 2008, 23:19
bogdanontanu,
Not exactly, to be compliant to SI… |
|||
|
|
bogdanontanu 14 Nov 2008, 04:08
Yes, I know but I am not compliant to the SI in terms of binary data units, for me 1 Mega byte is 2^20 (aka 1024Kilo bytes, aka 1024*1024 bytes) and not 10^6.
The reason for this is exactly the physical address buses that go in powers of 2 and not in powers of 10. Please excuse |
|||
|
|
DOS386 21 Nov 2008, 02:24
StarKnightD wrote: my bios does it automatically I have no way of checking it. Wrong. BIOS does what ? No "work" is needed to get A20 working if it is not crippled in the hardware. Quote: to get to the point, does anyone know (and could tell me) which bit people are referring to by A20? i.e., with or without zero-based addressing: bit 0, bit 1, ... , bit 19 = A20? for instance: Bit 20 of course ... physical address 1 MiB or $0010'0000 Quote: when the A20 line is disabled, two of these lines should give the same result. As when line is enabled ... The safe way is to CLI, peek value from address 0, save it, INC it, write it to address $0010'0000, recheck address 0, draw the conclusion, and restore original value in address 0, STI. _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.