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 ... 168 169 [170] 171 172 ... 317
2536
ASM / Re: Comparing bits in a register
« on: January 15, 2012, 10:16:04 pm »
For the second one, the OR A would not recognise if a was %00110000, right? But the first one looks a lot more beautiful, thanks!

2537
ASM / Re: Comparing bits in a register
« on: January 15, 2012, 10:06:47 pm »
I just want to know if bit 5 == bit 1 and bit 4 == bit 0.

2538
ASM / Re: Comparing bits in a register
« on: January 15, 2012, 10:02:47 pm »
Thanks! I still wonder if there is some crazy method available, but that is a lot better!

I just want to check if they are the same or not. If not, the XOR (or in your case, the AND) will return nz whereas if they are the same, it will return z.

2539
ASM / Comparing bits in a register
« on: January 15, 2012, 09:51:37 pm »
I want to compare bit 5 to bit 1 and bit 4 to bit 0 in the A register (the other bits are always 0). in other words, I want to xor the two nibbles of A or something similar, but as fast as possible. To start, here is one idea:
Code: [Select]
     ld c,a
     and $F0
     sla c
     sla c
     sla c
     sla c
     xor c
That is 47 cycles, 12 bytes-- too big/slow/inelegant for me to accept as the best method.

2540
In any event, I think all will go well and if it does not, we will make it go well :) And we *can* live without internet :P

2541
I believe we have a few folks here who are familiar with security ;)

2542
ASM / I/O Help
« on: January 15, 2012, 09:29:16 pm »
Okay, I have been having a tough time with this, so I need help. I am trying to send data between two calculators and I can easily send a single bit or two bits, but nothing longer seems to work. The protocol idea that I was working with looked like this (this is an outline):
Code: [Select]
         ld b,8
Send:
         rlc c                ; get the next bit of C
         ccf                  ; inverts the c flag since writing to the port will be inverted
         adc a,a            ; rotate the bit into a
         scf                  ; sets the carry flag
         adc a,a            ; sets the first bit
         out (0),a          ; send it to the port
         dec b              ; decrements the counter
         ret z                ; ends if the counter hits 0
CheckLoop:
         in a,(0)            ; Check the port
         rra                  ; We test bit 0
         jr c,Send          ; Ready to send the next bit
         jp CheckLoop    ; Eh, keep checking
Receive:
         ld b,8
Loop:
         in a,(0)            ; check the port
         rra                  ; check the bit to see if the data was being sent
         jr c,$-3
         rra                  ; get the bit that was sent
         rl c                 ; rotate it into C
         out (0),a          ;since A is 0, this will set both bits in port 0 signaling that another bit can be sent
         djnz Loop
         ret
Actually, I just typed that up and is only vaguely like the codes I have come up with before. In any event, if I take out the counters and only send one bit, it works fine and I receive it, bit if I try to send all 8 bits, it freezes (I think the receiving end).

Thanks much! I'd love to figure this out :)

2543
@systwo: Good point and great insight. I am sure we could find something, though, but I am also in an excitable mood XD

2544
What is this "USENET" ? It sounds familiar... My parents were thinking of getting this at some point, I believe, because there was no other way to get internet faster than half the speed of dial-up...

2545
I wonder if we could attack back with the combined might of our calculators? >:D

2546
@saintrunner: I'm game.

EDIT: The

2547
@Spyro543: I have been thinking of making a new internet protocol, too. The internet is miserably slow where I live, but I was working on a method so that everybody in the local area could have free 24/7 access to the news in that system and whatnot. It would be open to a limited userbase and spread out in communities around the world. If one went down with an infection, the rest would still be up and working, too, and there would be no way to censor or throw a kill switch.

2548
Maybe you guys could send a mass email, that way the users who are not always here would know, too.

2549
Good points. What if we started an e-mail based community?

2550
Other Calculators / Re: Calculator Audio Demodulator
« on: January 15, 2012, 07:07:28 pm »
Wow, that would be amazing!  Great freaking ideas! And you might be able to make the mic port on a computer read data sent from the calcs, too.

Wow, wireless might be possible for the calc in a new way... We would need a specially made device hooked up to the calc, but using sound is a neat idea!

Pages: 1 ... 168 169 [170] 171 172 ... 317