Jump to content
IGNORED

Will DASM do this for me?


grafixbmp

Recommended Posts

I need to place 2 tables of bytes (graphical data) in rom. However, i need one loaded in even addresses and the other in odd addresses. I would like to avoid manually interlacing my graphical data as well as color palettes. People keep saying let DASM do it for you so was wondering if it was up to the task.  

Link to comment
Share on other sites

An underline is better contrast than a zero, and a valid identifier character in sane programming languages, so I like to use an include file full of this:

 

#define ___X____    0x10
#define ___X___X    0x11
#define ___X__X_    0x12
#define ___X__XX    0x13
#define ___X_X__    0x14
#define ___X_X_X    0x15
#define ___X_XX_    0x16
#define ___X_XXX    0x17

 

or for assembly:

 

X_X_____    EQU    A0H
X_X____X    EQU    A1H
X_X___X_    EQU    A2H
X_X___XX    EQU    A3H
X_X__X__    EQU    A4H
X_X__X_X    EQU    A5H
X_X__XX_    EQU    A6H
X_X__XXX    EQU    A7H

 

I also have a 4-bit set, and similar ones for the reverse bit-endian:

 

___O__O_    EQU    48H
O__O__O_    EQU    49H
_O_O__O_    EQU    4AH
OO_O__O_    EQU    4BH
__OO__O_    EQU    4CH
O_OO__O_    EQU    4DH
_OOO__O_    EQU    4EH
OOOO__O_    EQU    4FH

 

I put commands to generate these lines to the interactive disassembler I wrote a few months ago.

xobits.h xobits.s

Link to comment
Share on other sites

1 hour ago, Bruce Tomlin said:

An underline is better contrast than a zero

 

I did that when I wrote Medieval Mayhem. It worked well for coding, but not so well for debugging as Stella would often show those instead of a more relevant label:

image.thumb.png.249a6bc8ed76a01afec99665e648c5a5.png

 

I now let my editor colorize binary for me.

 

2042879852_ScreenShot2019-12-15at11_40_4

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...