Brass - 1.0.5.3 update [06/02/2014]

One suite to code them all. An complete IDE and assembler for all your z80 projects!

Moderators: benryves, kv83

Post Reply
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

You can download a new version with a bugfix if you need to define single-character constants.
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

You rule! :worship: :excited: :yes:
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Code: Select all

cp '\n'

Code: Select all

Error: Could not parse expression ''' (Could not find any recognizable digits.). [current_api.inc:2428]
:?
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Oh bollocks. This appears to be a more major bug than I thought (it's splitting the line around the \ incorrectly, like TASM's weird "ld a,44 \ cp b" syntax, which is why it thinks that ' is the character constant, not '\n').
As a workaround, you can do this:

Code: Select all

newline = '\n'
; Stuff
	cp newline
; More stuff
...which DOES work (checked in a hex editor).

The triple-' in the error is because it displays the invalid character inside ' (so if it were a, it would display 'a', in this case it displays ''').
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Argh, I think this is fixed -- http://benryves.com/bin/brass/
It also adds very preliminary multi-page program support, but I haven't had too much of a chance to fully test it.
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

I'll give it another try this afternoon :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
Guest

Post by Guest »

sound like a nice project, this should help ppl for prgming asm a lot. I saw many games that took 5 years to be done while they could have taken less longer in C or BASIC for instance
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

Heheh, less longer.

This isn't a C compiler, it is for assembling assembly code.
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Timendus wrote:I'll give it another try this afternoon :)
Cool. The missing TI-API webring box is because my copy is out of synch with what was the live copy. I'll be rearranging/skinning the manual to make it slightly more usable. :)
Anonymous wrote:sound like a nice project, this should help ppl for prgming asm a lot. I saw many games that took 5 years to be done while they could have taken less longer in C or BASIC for instance
Brass is a regular assembler... I think you mean Tim's API ;)
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

I thought guest posting was disabled?

I'm postponing the testing to tomorrow, I really need to study for my exam tomorrow, even though I don't want to... :(
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

benryves wrote:Argh, I think this is fixed
Yup, runs like a charm, as expected ;)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Well I wanted to code a quick project, sound with volume this time, I decided to use brass since it's a single standalone prog. But why does the file output with the extension BIN when I set it to TI8X, am I forgetting something?
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Jim e wrote:Well I wanted to code a quick project, sound with volume this time, I decided to use brass since it's a single standalone prog. But why does the file output with the extension BIN when I set it to TI8X, am I forgetting something?
It always outputs .bin if you don't specify an extension explicitely. Mainly because it decides the filename/extension right at the beginning of the program, and therefore changing it to .8xp would alter any filename passed in by the user. (Laziness, in other words!)
brass <source> <outfile>.8xp works.
It should be changed, though. ;)

Sound with volume? How do you intend on doing that? PWM?
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

benryves wrote:Sound with volume? How do you intend on doing that? PWM?
That wouldn't work... would it? :?
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

Yep, though atm it's only playing note A4, but I got a pretty full vulume spectrum. Hopefully I could get some 8bit PCM audio going, really show my nerdiness as I listen to my calc music player. :twisted: 8)


Edit: I just tried .defpage and .page, didn't work even with your example.
Image
Post Reply