Glass Z80 assembler

Pagina 1/21
| 2 | 3 | 4 | 5 | 6

Door Grauw

Ascended (10862)

afbeelding van Grauw

02-01-2014, 16:15


I have created a Z80 assembler. It is called Glass. It is cross-platform (Java 7).

The project site:

Aangemeld of registreer om reacties te plaatsen

Van Manuel

Ascended (19812)

afbeelding van Manuel

02-01-2014, 16:36

Hey, Grauw is back alive! (At least visibly...) welcome back!

Van Latok

msx guru (3977)

afbeelding van Latok

02-01-2014, 16:37

It IS him! Nice Smile

Van Grauw

Ascended (10862)

afbeelding van Grauw

02-01-2014, 18:11


Post 1799… Smile


Enlighted (6128)

afbeelding van NYYRIKKI

03-01-2014, 10:50

Long time no C!

Some day I would like to see a standalone Z80-assembler that can compile SymbOS sources.

Van edoz

Prophet (2510)

afbeelding van edoz

03-01-2014, 12:17

What about symstudio ?

Van Grauw

Ascended (10862)

afbeelding van Grauw

03-01-2014, 14:52

Thanks for the responses Smile.

To give a little background; I was actually working on something else for the MSX, but then spoiled as I am with modern languages and silly things like block scopes and properties and types, I got a bit frustrated with the assembler and started to work on Glass Smile.

For the first version I focused on getting it on par with other assemblers in terms of features, so that I could replace my current assembler on the afore mentioned project. It supports regular and repetition macros, and block scopes. A little more advanced feature is that you can reference into scopes by using the dot (.).

I hope to add more advanced features in the future. Some ideas are extending macros to make them more useful for class definitions, multi-compiling methods (er, procedures), static analysis, automatic optimisations, debug output with timing information… Also, the ability to pass registers into macros so I can make one for “ld ix,de”, perhaps like this: MACRO r1, r2 / ld r1.lsb, r2.lsb / ld r1.msb, r2.msb / ENDM.

Van Creepy

Champion (335)

afbeelding van Creepy

03-01-2014, 21:59

Just a quick question for which I could not find the answer in the readme: How can you define fields without creating output (to point to variabels in RAM when creating a ROM)? Sjasm uses # for that, tniasm uses RB.

Van Grauw

Ascended (10862)

afbeelding van Grauw

03-01-2014, 23:46

Ah, it’s not currently possible, other than by using equ.

What I do is I actually define them in ROM (with a different ORG address), and then copy them to RAM. That way I can initialise the fields as I please. Like so:

; All RAM data is defined inside the marked section below
; These values are copied to RAM during program initialisation

    ld hl,RAM_dataStart
    ld de,RAM_dataStartAddress
    ld bc,RAM_dataSize

    org 0C000H

    ds 11,0

; The initial ROM banks
; Stored as words that include the bank select register address
; Example: ld hl,(ROM_bank3) / ld (hl),l
    dw 5000H
    dw 7001H
    dw 9002H
    dw 0B003H

RAM_dataSize: equ $ - RAM_dataStartAddress
    org RAM_dataStart + RAM_dataSize

I understand though that it would also be useful to do this kind of thing without generating output. I’ll put it in the bug tracker as an enhancement request. Need to think a little about the best way to do it. Maybe a new type of section.

Van Grauw

Ascended (10862)

afbeelding van Grauw

04-01-2014, 00:35

This is my current line of thinking:

Seems like a nice idea, right?

Van Creepy

Champion (335)

afbeelding van Creepy

04-01-2014, 11:09

I get an access denied message when trying to access the issue (I do have a bit bucket account)

Pagina 1/21
| 2 | 3 | 4 | 5 | 6