Bug 125 - Implement dxset / dx.b/w/l
Summary: Implement dxset / dx.b/w/l
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: PC All
: Normal enhancement
Assignee: Shamus Hammons
Depends on:
Reported: 2018-06-09 09:59 CDT by ggn
Modified: 2018-06-09 09:59 CDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description ggn 2018-06-09 09:59:57 CDT
This is an oddball feature from turbo assembler I always liked. An example will illustrate this better than I would:

dxset 64,32
dx.b 'string 1'
dx.b 'string 2'

This will deposit the 'string 1' bytes, then deposit 58 (64-8) spaces (ascii 32), then deposit 'string 2' etc.

Quite handy if you want to make an fixed size table but are too bored to do the filling by hand.

The second parameter in dxset is optional and defaults to 0.

If the first parameter in dxset is smaller than the line deposited (for example dxset 2 / dx.b 'aaa') then that's an error.

Finally, turbo assembler limits dc.X to strings but maybe we could extend this to anything?