Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add records and data types #56

Open
duncanamps opened this issue Oct 28, 2024 · 0 comments
Open

Add records and data types #56

duncanamps opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
key feature Significant new feature
Milestone

Comments

@duncanamps
Copy link
Owner

Add records and data types.

Data types, whereas we have DB, DW etc. to make these more "debugger useful", specifically:

Data type Bytes Notes
char 1
byte 1 Unsigned
shortint 2
word 2
longint 4
dword 4
int64 8
qword 8

Records allow a definition something like:

DEFINE RECORD recname
rsize: word
signature: dword
entries: shortint
marker: char
csc: dword
end

And variables could be declared and used with:

RECORD buffer: recname
LD A,buffer.marker

Some things to think about.

  • General grammar to make sure it doesn't mess everything else up
  • Pointers to records
  • Using this as a stack frame
@duncanamps duncanamps added the enhancement New feature or request label Oct 28, 2024
@duncanamps duncanamps added this to the V1.0 milestone Oct 28, 2024
@duncanamps duncanamps self-assigned this Oct 28, 2024
@duncanamps duncanamps modified the milestones: V1.0, V1.1 Oct 28, 2024
@duncanamps duncanamps added key feature Significant new feature and removed enhancement New feature or request labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
key feature Significant new feature
Projects
None yet
Development

No branches or pull requests

1 participant