Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xeda112358

Pages: 1 [2] 3 4 ... 317
16
Introduce Yourself! / Re: Hello!
« on: June 28, 2022, 07:46:41 pm »
\o/ Welcome to Omni! Have some !peanuts :D

17
The Axe Parser Project / Re: Handling multiple inputs at once
« on: June 28, 2022, 04:20:56 pm »
You were on the right track-- "getKey" on its own returns a single keypress, but you can also use "getKey(n)" to check if key "n" is pressed (it returns 0 for not pressed, 1 for pressed).

So if you want to check for both Enter and the Down arrow, simultaneously:
Code: [Select]
If getKey(9)
//Enter is pressed
End

If getKey(1)
//Down is pressed
End

You can also do some useful arithmetic, like if you have (X,Y) coordinates, you might want:
Code: [Select]
X+getKey(3)-getKey(2)→X
Y+getKey(1)-getKey(4)→Y
And that has a bonus of letting the user press multiple arrow keys simultaneously :)

Hopefully that helps!

EDIT: Also, welcome to Omninaga, you should Introduce Yourself!

18
TI Calculators / Re: Need Help With a Possible Bricked TI-84+CSE
« on: May 28, 2022, 05:24:43 pm »
You'll need to start the process of sending the OS to your calc before you press ON. EDIT: In fact just don't press ON unless you are trying to turn off your calc.

Have you tried TiLP instead of TI Connect? Warning: I believe on Windows you can only have one installed at a time, they have drivers that interfere with each other.

Are you sure you have the right OS file, and not one for the monochrome calcs or CE? (CE is very different from CSE)

19
ASM / Re: Sine Approximation [Z80]
« on: February 03, 2022, 09:08:55 pm »
Necropost: this came up elsewhere and I made a python version if anybody is interested. I think it could be implemented really well with logic gates!
https://gist.github.com/Zeda/98aab98fd32a231b878772a435ffb306

Code: [Select]
#!/usr/bin/python3

# This is ported from:
#    https://www.omnimaga.org/asm-language/sine-approximation-(z80)/
# (Xeda112358  a.k.a.  Zeda  a.k.a.  ZedaZ80)
#

from math import sin

def sineb(x):
    """Approximates 128*sin(x*2*pi/256)"""

    a1 = int(x)
    a0 = a1 << 1
    a2 = a1 >> 1

    # iteration 1
    if a1 & 64:
        l = ~a0 & 127
    else:
        l =  a0 & 127

    # iteration 2
    if a1 & 32:
        l += ~a1 & 31
    else:
        l +=  a1 & 31

    # iteration 3
    if a1 & 16:
        l += ~a2 & 7
    else:
        l +=  a2 & 7

    # check if it needs to be negated
    if a1 & 128:
        return -l
    else:
        return l

# Plot a graph of the approximation vs the actual
for x in range(0, 256, 2):
    y = sineb(x)
    z = int(sin(x*3.1415926535/128)*128)

    # translate and scale for "graphing"
    y += 128
    z += 128
    y >>= 1
    z >>= 1

    # "graph"
    #    X - Approximation
    #    O - Actual
    #    8 - used when the graphs overlap
    if y == z:
        print(" "*y + "8")
    elif y > z:
        print(" "*z + "X" + " "*(y-z-1) + "O")
    else:
        print(" "*y + "O" + " "*(z-y-1) + "X")

20
Axe / Re: Looping Through an Array in Axe
« on: December 15, 2021, 08:13:45 am »
I'm thinking it might be an order-of-operations issue since Axe obeys parentheses, but is otherwise left-to-right instead of PEMDAS.

Instead of this:
Code: [Select]
      If (RoomX≥XMin and RoomX≤XMax) and (RoomY≥YMin and RoomY≤YMax)
        0→R
        GetRoomStart()
      End
      !If (RoomX≥XMin and RoomX≤XMax) and (RoomY≥YMin and RoomY≤YMax)
        R++
      End
Try:
Code: [Select]
      If (RoomX≥XMin) and (RoomX≤XMax) and (RoomY≥YMin) and (RoomY≤YMax)
        0→R
        GetRoomStart()
      Else
        R++
      End

21
Axe / Re: Axe Loops not Working as Expected
« on: December 09, 2021, 07:39:39 pm »
The code is difficult to follow, but it looks like you are mixing 0-indexing and 1-indexing.
You loop J from 1 to Rooms, but then you are checking if J>0 in the same loop (which is always true).

J+(J*((J>0)*4))-4→Y
Simplifies to:
J+(J*(1*4))-4→Y
J+(J*4)-4→Y
J*5-4→Y

Maybe there is something there?

22
That is amazing :0

23
TI Z80 / Re: Elimination RPG: Early Release Build!!
« on: November 25, 2021, 02:01:27 pm »
Could it be that I used WabbitSign?  Should I use something else to sign the app?
I haven't used wabbitsign in a long time and I'm not sure if that is the issue. I generally use spasm and I've got it configured to automatically sign apps.

I know Wabbitemu is very generous with loading apps (it bypasses the calc's security which is great for streamlining development, but it hides signing issues).

I'm not much help with this stuff these ays XD .__.

24
TI Z80 / Re: Elimination RPG: Early Release Build!!
« on: November 25, 2021, 07:58:34 am »
I cannot send the 8xk file to my 84+. I get an error saying the application file is broken and to redownload it again, and if it doesn't work, to contact TI for help. D:
Out of curiosity, can you send it to an emulator?

25
TI Z80 / Re: Alien Breed 5 Episode III: Impact
« on: November 13, 2021, 08:10:25 am »
Holy heck that looks so good :O

26
TI Z80 / Re: Elimination: An RPG inspired by Earthbound / Pokemon
« on: November 07, 2021, 06:35:35 am »
Oh yeah, that definitely works :0

27
TI Z80 / Re: Elimination: An RPG inspired by Earthbound / Pokemon
« on: October 23, 2021, 04:03:12 pm »
Awww yiss, that looks pretty cool!
I definitely like the monochrome graphics (I also find that grayscale is just too rough to look at on actual hardware and with moving images).

28
ASM / Re: eZ80 Optimized Routines
« on: October 11, 2021, 12:32:17 pm »
Oh, fantastic! Good catch!

29
Other Calculators / Re: Darkblasters: A new graphical TI-84+/SE BASIC RPG
« on: September 11, 2021, 12:16:59 pm »
That is absolutely amazing, and especially for having been done in TI-BASIC  :o

30
Other Discussions / Re: Omnimaga turns 20 years old!
« on: September 02, 2021, 06:49:34 am »
Woah, happy birthday Omni!
!peanuts

Pages: 1 [2] 3 4 ... 317