Author Topic: Features Wishlist  (Read 613699 times)

0 Members and 5 Guests are viewing this topic.

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 #690 on: June 11, 2010, 09:35:05 pm »
I thought Quigibo added the Shade( command for that?
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #691 on: June 11, 2010, 10:10:51 pm »
I don't think it was tied to the contrast level set in RAM, though. It just directly updated the screen. I could be wrong, though.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #692 on: June 11, 2010, 10:27:59 pm »
you cannot actually update the screen itself with the new contrast value
It just directly updated the screen

Sorry, I don't understand what you were trying to say here. Though, if you want to update the OS contrast value so it doesn't "jump" when changing it after the program exits, you can store the new value to {E8447}.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #693 on: June 11, 2010, 10:33:40 pm »
In the first quote, I was talking about when you store 00h-27h to 8447h, it doesn't actually change the LCD contrast.

In the second one, I was talking about the Shade command. I thought it actually did the later without doing the former?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #694 on: June 11, 2010, 10:35:31 pm »
Ah, yeah. Well, I was answering to your comment that you needed ASM code to update the screen.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #695 on: June 11, 2010, 10:52:43 pm »
aaah ok that's what I guessed. You needed to update a port or something I forgot (I should check the page on WikiTI again later)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #696 on: June 12, 2010, 09:32:53 am »
Yeah, port 10h, with values C0-FF (or, rather, D8-FF, if the values are between 00 and 27 in (contrast))
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Features Wishlist
« Reply #697 on: June 12, 2010, 12:42:20 pm »
I don't know if someone has already requested this but i would really like the "randint(" command because it is beginning to get a bit annoying to put

Code: [Select]
While (A>100) or (A<10)
rand/1000->A
End

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 #698 on: June 12, 2010, 01:06:14 pm »
If you want a random integer between 10 and 100, you should do

Code: [Select]
rand^91+10
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #699 on: June 12, 2010, 01:47:42 pm »
It might be nice if somebody made a converter (even if just a BASIC program) where you select the starting and ending range for your randomizing then converts it to Axe format, because I find rand kinda hard to work with, since it uses such high values. A converter (that produces the appropriate needed code) would help a lot
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #700 on: June 12, 2010, 01:59:13 pm »
It might be nice if somebody made a converter (even if just a BASIC program) where you select the starting and ending range for your randomizing then converts it to Axe format, because I find rand kinda hard to work with, since it uses such high values. A converter (that produces the appropriate needed code) would help a lot

To produce a random integer between start and end:
rand^(end-start+1)+start

For example, 1 to 10:
Code: [Select]
rand^(10-1+1)+1
rand^10+1

333 to 666:
Code: [Select]
rand^(666-333+1)+333
rand^334+333
« Last Edit: June 12, 2010, 02:03:40 pm by Runer112 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #701 on: June 12, 2010, 02:02:26 pm »
is it the smallest syntax, though? I really meant some sort of basic to axe rand converter, even if it means the start/end range is different in the Axe version. Just asking for size reasons
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #702 on: June 12, 2010, 02:04:14 pm »
What do you mean by "is it the smallest syntax?"

EDIT: If you mean is that the most size-efficient way to produce a random integer in that range, yes.
« Last Edit: June 12, 2010, 02:07:42 pm by Runer112 »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #703 on: June 12, 2010, 02:05:42 pm »
I am not sure how to explain it further. Sorry. Could anybody else explain to him for him?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #704 on: June 12, 2010, 02:23:32 pm »
Like this?

EDIT: Wait hold on, fixing a bug.

EDIT 2: Attached.
« Last Edit: June 12, 2010, 02:41:06 pm by Runer112 »