Author Topic: Features Wishlist  (Read 682781 times)

0 Members and 2 Guests are viewing this topic.

souvik1997

  • Guest
Re: Features Wishlist
« Reply #1905 on: February 20, 2011, 06:07:34 pm »
That shouldn't be too hard, there is already a bit opcode in ASM.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #1906 on: February 20, 2011, 06:28:12 pm »
Code: [Select]
179->A
For(B,0,7)
If bit{A*8+B}
.Do Stuff
End
End

It already is possible to extract single bits from a byte or word with the e command (that's Euler's constant, not just a plain lowercase e). For instance, AeB would retrieve the Bth bit of the low byte of A, with B=0 corresponding to the most significant bit and B=7 corresponding to the least significant bit. The code you posted could be emulated with the following:

Code: [Select]
{POINTER}→A
For(B,0,7)
If AeB
.Do Stuff
End
End
« Last Edit: February 20, 2011, 06:39:53 pm by Runer112 »

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Features Wishlist
« Reply #1907 on: February 20, 2011, 11:10:54 pm »
Yes, and also multiplying an address by 8 loses a LOT of important information. The nibble command gets around multiplying by 2 by having two separate commands, one for flash(apps) and one for ram.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1908 on: February 21, 2011, 02:05:53 am »
What I think should be added is the ability to *set* bits through a method other than ORing or ANDing bit masks, of which not everyone is familiar with

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Features Wishlist
« Reply #1909 on: February 25, 2011, 01:18:50 am »
What I think should be added is the ability to *set* bits through a method other than ORing or ANDing bit masks, of which not everyone is familiar with

Especially, the people that come from a BASIC background (like me)

EDIT: Oh, and are there still plans for mode 7 gfx? That would be great.
« Last Edit: February 27, 2011, 01:53:05 am by ralphdspam »
ld a, 0
ld a, a

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: Features Wishlist
« Reply #1910 on: February 28, 2011, 02:07:06 am »
I think Mode 7 will be added through an axiom.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1911 on: February 28, 2011, 02:09:00 am »
It would also be nice to be able to back up programs even if they are archived :)

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: Features Wishlist
« Reply #1912 on: February 28, 2011, 02:19:16 am »
We can't? I always thought we could... it would be a nice idea in case before compiling we screwed up our code to the point of requiring a rollback. X.x

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #1913 on: February 28, 2011, 02:22:51 am »
Yeah for some reason it does nothing when the code is archived o.O maybe because it doesnt auto backup when its archived?

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Features Wishlist
« Reply #1914 on: February 28, 2011, 10:29:40 am »
Yeah for some reason it does nothing when the code is archived o.O maybe because it doesnt auto backup when its archived?
Probably because it's archived. If its archived, the reasoning is that you aren't working on it at the time. There is very little reason to back it up. If you need to, you could back it up manually, or unarchive it.
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



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: Features Wishlist
« Reply #1915 on: February 28, 2011, 08:53:27 pm »
Request: Adding a null byte after input.




Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Features Wishlist
« Reply #1916 on: March 01, 2011, 03:42:35 am »
The problem with backing up things in archive is that there isn't always enough free ram to create the backup (whereas you are guaranteed to have it if it already exists in ram).
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Features Wishlist
« Reply #1917 on: March 01, 2011, 11:13:23 am »
Request: Adding a null byte after input.
You could always add that yourself. In fact, you are probably doing character processing on the string anyway, since input returns a string of tokens.
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



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: Features Wishlist
« Reply #1918 on: March 01, 2011, 06:40:38 pm »
Request: Adding a null byte after input.
You could always add that yourself. In fact, you are probably doing character processing on the string anyway, since input returns a string of tokens.

By then there's no way to know how long the string is, though.




Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #1919 on: March 01, 2011, 06:49:53 pm »
The problem with backing up things in archive is that there isn't always enough free ram to create the backup (whereas you are guaranteed to have it if it already exists in ram).
This doesn't sound like too much of a problem; can the parser check and then tell the user "Not enough RAM to backup" if it errors?
I think this is a good idea. ;)