Author Topic: Mimas by Benjamin Moody  (Read 60002 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #240 on: November 29, 2010, 08:57:13 am »
To add a one-byte number to and register pair, you need to use a. (add c,NUM is not a valid instruction)
Here's an adaptation from a routine to add a to hl:
Code: [Select]
ld a,num_to_add
add c
ld c,a
adc a,b
sub c
ld b,a
This takes care of carry and everything.
Also, what register you use should be determined by the circumstances (like what routines you will be calling, for example, or what instructions are valid).

Thanks, that works!

souvik1997

  • Guest
Re: Mimas by Benjamin Moody
« Reply #241 on: December 26, 2010, 10:32:20 pm »
Sort of a necropost but I have a question. In Mimas 0.3, the library files don't do anything. For example, when I import IonEqu and type "CALL iPutSprite" the compiler thinks I have a label called iPutSprite. Also, it doesn't add anything to the menus.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Mimas by Benjamin Moody
« Reply #242 on: December 26, 2010, 11:50:30 pm »
Yeah I've had issues with this too
/e

Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #243 on: January 01, 2011, 07:09:12 pm »
It's defined as "ionPutSprite", not "iPutSprite".

If you do have a program that isn't being assembled correctly, please send me a copy if you can (post it here, or PM or email it to me, or whatever.  I won't distribute it to anyone else if you don't want me to.)  If you can find a small test case that exhibits the bug, that's always appreciated, but don't let that stop you from posting a large test case if you're not sure how to simplify it.

You're right that there ought to be a menu of symbols that are provided by libraries, but that proved to be rather difficult; I'm planning to implement it eventually, but I haven't done so yet.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #244 on: January 01, 2011, 07:16:48 pm »
FloppusMaximus, it's a pleasure to meet you, I love Mimas, congratulations!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Mimas by Benjamin Moody
« Reply #245 on: February 15, 2011, 03:54:09 pm »
I finally downloaded this on my real calc. It's awesome O.O




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #246 on: February 15, 2011, 04:10:25 pm »
I finally downloaded this on my real calc. It's awesome O.O

That was late xD, it's awesome, super easy to use and awesome compiler.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Mimas by Benjamin Moody
« Reply #247 on: February 15, 2011, 06:14:36 pm »
I finally downloaded this on my real calc. It's awesome O.O

That was late xD, it's awesome, super easy to use and awesome compiler.

You said 'awesome' twice, and I agree ;D

Finally I can program ASM offline.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Mimas by Benjamin Moody
« Reply #248 on: February 17, 2011, 04:05:29 am »
Just make sure, like with Axe, to backup often, though. X.x

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #249 on: February 17, 2011, 09:47:47 am »
Quote
Finally I can program ASM offline.

There are other compilers... For a longer time too, but this one outruns them all!

Also, why do you need to be online to program Assembly? Don't you mean in a computer?
« Last Edit: February 17, 2011, 09:48:10 am by Scout »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Mimas by Benjamin Moody
« Reply #250 on: February 17, 2011, 09:58:44 pm »
Bug report:

Mimas sets bufferOnly (in plotFlag3) but doesn't reset it when quitting.

Quote
Finally I can program ASM offline.

There are other compilers... For a longer time too, but this one outruns them all!

Also, why do you need to be online to program Assembly? Don't you mean in a computer?

Yeah, I meant on a computer.

I used to use Tasm_on_Calc, then OTBP. Both were a bit slow for me.
« Last Edit: February 17, 2011, 09:58:56 pm by Deep Thought »




Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #251 on: February 17, 2011, 10:39:18 pm »
I'm glad you guys like it. :)

Bug report:

Mimas sets bufferOnly (in plotFlag3) but doesn't reset it when quitting.
Are you sure about that?  It shouldn't - it never uses that mode.  I've just noticed, however, that it leaves the plotLoc flag set.  Maybe that's what you're seeing?

(I guess I just assumed that plotLoc would be reset by the OS.  Turns out that isn't the case.  bufferOnly, however, is reset automatically, so even if Mimas did leave that flag set, it wouldn't cause any problems.)

I'll fix it as soon as possible, but just out of curiosity, what sort of problems does this cause?

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Mimas by Benjamin Moody
« Reply #252 on: February 17, 2011, 10:48:49 pm »


Yeah, I meant on a computer.

I used to use Tasm_on_Calc, then OTBP. Both were a bit slow for me.
What I always thought was ironic about TASM_ON_CALC was that the majority of the assembler was programmed in BASIC. It also took forever just to compile a simple program.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Mimas by Benjamin Moody
« Reply #253 on: February 17, 2011, 10:57:21 pm »
I'm glad you guys like it. :)

Bug report:

Mimas sets bufferOnly (in plotFlag3) but doesn't reset it when quitting.
Are you sure about that?  It shouldn't - it never uses that mode.  I've just noticed, however, that it leaves the plotLoc flag set.  Maybe that's what you're seeing?

(I guess I just assumed that plotLoc would be reset by the OS.  Turns out that isn't the case.  bufferOnly, however, is reset automatically, so even if Mimas did leave that flag set, it wouldn't cause any problems.)

I'll fix it as soon as possible, but just out of curiosity, what sort of problems does this cause?

I noticed plotLoc too. I just thought it also did something to bufferOnly because I noticed an Axe program that uses Bitmap( didn't work properly after. Fix 8 (in Axe), which resets bufferOnly, seemed to fix it. It might have been plotLoc after all, though (I'm not really sure how the Bitmap( thing works).




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Mimas by Benjamin Moody
« Reply #254 on: February 18, 2011, 04:13:16 am »
What OS do you have Deep Thought?