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
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 »

I got a stupid idea. How bout an incbmp directive? For those of us that just want a quick picture included and with a threshold option.
Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Great idea! I wrote a script to do that for me once, this would've saved me a lot of time :)
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 »

Jim e wrote: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)
How can you have PCM audio on a device which only allows you to output high or low (well, maybe 2-bit PCM if you used both data lines and a resistor)?

As for incbmp; just for black-and-white unmasked graphics, I assume? The problem I had with the incbmp is the inconsistency of palette/mask/padding people have. I'll probably throw in a very basic one, then (it would make sense to have the MirageOS icon as a 15x15 .gif!)

As for .defpage and .page; I see where the problem is (I added a check to see if the boundaries are invalid after writing the documentation, and check the wrong variable - whoops :()
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 »

Pulse width modulation worked fairly well. I checked with a multimeter I had, I was able to control the voltage between 3 volts and .08volts (IIRC). Though right now the volume control is linear, i don't know an easy way to fix that.(well maybe)

Well for incbmp couldn't some sort of user defineable structure be made. I don't but I most wanted some like for quick graphics.

I want to try to build OS yesterday, when I remember that you added defpage I realised brass is perfect for the job.
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Perfect, apart from the fact that it doesn't work ;) (if you set the page origin to 0 and then manually .org $2000 with my samples you get an array-index-out-of-bounds, so something is seriously broken).
I'll look into it tonight; bugs get top priority.

I couldn't get PWM sounding good at all on my 83+ - is this 15MHz-SE stuff, or will it work at both speeds?
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 »

It's at 15mhz, and it looks like as little as 2-4 clocks make a difference. I don't know why I'm coding so much lately. Except me annoy you more with bug reports and feature requests.
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:Except me annoy you more with bug reports and feature requests.
I need as many bug reports as you can find! (though something has been royally messed up with this page stuff). Feature requests are always useful as well. :)
User avatar
benryves
Maxcoderz Staff
Posts: 3089
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Few bugfixes and features... http://benryves.com/bin/brass/
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 »

Damm, nice layout. I give it a try.
Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Wow, the website layout is nice. Looking great.
*lol at Jims sig.
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Yeah, goodlooking website, but I think the old one was a bit more clear. Now I immediately have to drown in all that tech stuff of the manual ;)
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 »

I tested the defpage stuff, the fopen stuff and the loop contorl...stuff. All worked beautifully. Plus with a program I made I can now build multipaged apps. Still haven't tested .incbmp though. Great work ben.
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:I tested the defpage stuff, the fopen stuff and the loop contorl...stuff. All worked beautifully. Plus with a program I made I can now build multipaged apps. Still haven't tested .incbmp though. Great work ben.
Thanks... you can build apps after your program does a conversion of Brass's output? Ultimately, I'd like Brass to add the app header and possibly sign the app directly, but will need help (sorry, Gambit, if you're reading - I have been busier trying to get a beta of Latenite together for another release!) :)
.incbmp seems to work fine... I do actively develop in Latenite/Brass, how else would I do bugfixes? :) There's a bug in the current .defcont that I have fixed, and I've thought of a few new directives that could be useful. Hopefully there'll be something to show (at least the .defcont bugfix) on Monday.
Gambit
Sir Posts-A-Lot
Posts: 252
Joined: Mon 21 Feb, 2005 5:34 am
Location: Laveen, Arizona

Post by Gambit »

No worries, but make sure you get RabbitSign for signing Apps! :D
"If SOURCE is outlawed, only outlaws will have SOURCE."
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 »

I was looking for that
Image
Post Reply