flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > load and org

Author
Thread Post new topic Reply to topic
osbios



Joined: 26 Aug 2006
Posts: 2
Location: Germany
osbios 26 Aug 2006, 09:27
How does the load directive exactly work?

I tryed to create a checksum for my kernel but it failed always with "value out of range".
I guess the problem is the way I use org:
Code:
db 0xD

load firstbyte from 0       ;works fine

org $+100
org $-100

load firstbyte_again from 0 ;dosnt work    


Is this a bug or is it just not possible to use load and org like this?
Post 26 Aug 2006, 09:27
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Aug 2006, 09:46
you must load from current address space, and before current offset. address space is changed by "virtual", "org" etc.
Post 26 Aug 2006, 09:46
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.