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.


Topics - Albytok

Pages: [1]
1
Humour and Jokes / FIBONACCI BUTTSORT
« on: January 17, 2013, 03:10:50 pm »
In this thread we shall discuss the various implementations of the

FIBONACCI BUTTSORT

2
Introduce Yourself! / Hello.
« on: December 18, 2012, 04:38:15 pm »
Well, here I am. I came here mostly to get help with ASM problems that I couldn't figure out myself.

I also suck at introductions. Can I have my peanuts now?

3
ASM / Stuck in Key Loop
« on: December 18, 2012, 04:30:46 pm »
So, what this routine is supposed to do is pause the program until the user hits the DEL key. For some reason though, whenever I use this routine, the calculator doesn't respond to the DEL key. In fact, it won't respond to any key, and just keeps looping forever.

Here's the code:
Code: [Select]
    ld c, 1

WaitKey:
    ld a, $FF
    out (c), a
    ld a, $FD
    out (c), a
    nop
    nop
   
    in a, (c)
       
    bit 7, a
    jp nz, WaitKey
   
    ld a, $FF
    out (c), a
    ret

What am I doing wrong?  :-\

EDIT: Wait, nevermind. I was just reading from the wrong key group. ::)

Pages: [1]