flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 02 Mar 2012, 12:38
Check your DS segment register.
Code: org 0x100 mov ax,cs mov ds,ax mov bx,Table ;... |
|||
![]() |
|
Tomasz Grysztar 02 Mar 2012, 12:47
revolution: .COM programs have CS=DS=ES=SS at startup, all with the value of PSP. It is enough to add "org 100h" in the beginning to get this working.
|
|||
![]() |
|
Andy 02 Mar 2012, 12:49
I spent 2 hours to check what I'm doing wrong and all this because I didn't set the origin? I'm feel so dumb. Well this is the way that go all beginners. It's good to have on whom you ask.
Thanks revolution! |
|||
![]() |
|
revolution 02 Mar 2012, 13:04
Tomasz Grysztar wrote: revolution: .COM programs have CS=DS=ES=SS at startup, all with the value of PSP. It is enough to add "org 100h" in the beginning to get this working. |
|||
![]() |
|
Tomasz Grysztar 02 Mar 2012, 13:13
Writing .COM programs was really like flat memory model programming, especially when combined with FRM.
![]() |
|||
![]() |
|
revolution 02 Mar 2012, 13:40
offtopic: That was your 5000th post! Hehe, not that it actually means anything of course.
|
|||
![]() |
|
revolution 02 Mar 2012, 13:42
Andy wrote: I spent 2 hours to check what I'm doing wrong and all this because I didn't set the origin? I'm feel so dumb. Well this is the way that go all beginners. It's good to have on whom you ask. Andy wrote: Thanks revolution! |
|||
![]() |
|
Tomasz Grysztar 02 Mar 2012, 13:48
revolution wrote: offtopic: That was your 5000th post! Hehe, not that it actually means anything of course. ![]() |
|||
![]() |
|
AsmGuru62 02 Mar 2012, 14:55
COM files were actually quite awesome.
There is about 64Kb of code and around 560Kb of memory! I once written large stuff with these - in 1989!! |
|||
![]() |
|
avcaballero 07 Mar 2012, 17:09
Some time ago I did something similar with xlat:
http://www.abreojosensamblador.net/Productos/AOE/html/Pags_en/Chap07.html Search for "7.1.1.6. XLAT" You have to follow the program execution with a debugger: Greetings. It would also be good that you look in Ralph Brown Interrupt List for xlat ![]() ![]() http://www.gui.uva.es/udigital/
_________________ Siempre aprendiendo |
||||||||||
![]() |
|
16bitPM 29 Mar 2012, 19:35
Tomasz Grysztar wrote: Writing .COM programs was really like flat memory model programming, especially when combined with FRM. OK my turn to feel dumb: what's FRM? |
|||
![]() |
|
Tomasz Grysztar 29 Mar 2012, 20:42
16bitPM wrote: OK my turn to feel dumb: what's FRM? |
|||
![]() |
|
16bitPM 30 Mar 2012, 18:21
Ow.. that one... never been a fan.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.