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 - ben_g
Pages: 1 ... 66 67 [68] 69 70 71
1006
« on: May 29, 2011, 04:10:16 pm »
I got it to install and run, but when i try to connect, my calc just doesn't show up in the list of connected calcs
1007
« on: May 29, 2011, 03:59:50 pm »
1594: You think abouth how to optimise your code when standing in a shower 1595: You totally forgot a calc is made for math 1596: When you learn something new at math, you just have to write a basic program that can solve it 1597: When you replied to a thread, you sometimes keep refreshing the page to see if someone has replied
1008
« on: May 27, 2011, 07:23:12 pm »
Managed to get TiLP working (what a battle that was), so problem solved I guess (or more like avoided). Thank you all for the advice!
How? I can't even get TI-LP to connect
1009
« on: May 27, 2011, 03:40:59 pm »
what is 'The Game'?
1010
« on: May 26, 2011, 04:14:43 pm »
Is there any rom call to write a signed number to the screen?
1011
« on: May 26, 2011, 04:00:40 pm »
an other attempt on my divide, Will this handle signed numbers correctely?
DivFP: ;IN: hl, de ;OUT: hl = hl / de bit 7, d ;start of signed stuff jr nz, _DivFP_FirstNeg bit 7, h jr nz, _DivFP_AnsNeg jr z, _DivFP_AnsPos _DivFP_FirstNeg: bit 7, h jr nz, _DivFP_AnsPos _DivFP_AnsNeg: ld a, 1 push af jr _DivFP_Cont _DivFP_AnsPos: ld a, 0 push af _DivFP_Cont: bit 7, h jr z, _DivFP_HLPos call NegHL _DivFP_HLPos: bit 7, d jr z, _DivFP_DEPos call NegDE _DivFP_DEPos ;end of signed stuff and start of the unsigned divide ld a, h ld h, l ld l, 0 call Div24by16 pop af cp 1 call z, NegHL ret
Div24by16: push hl ;INPUTS: ahl = dividend de = divisor ;1 pop ix ;OUTPUTS: ahl = quotient de = divisor ;0 ld hl,0 ld b,24 _Div24by16loop: add ix,ix rla adc hl,hl jr c,_Div24by16setbit or a sbc hl,de add hl,de jr c,_Div24by16skip _Div24by16setbit: or a sbc hl,de inc ix _Div24by16skip: djnz _Div24by16loop push ix ;1 pop hl ;0 ret
NegHL: xor a sub l ld l,a sbc a,a sub h ld h,a ret
NegBC: xor a sub c ld c,a sbc a,a sub b ld b,a ret
NegDE: xor a sub e ld e,a sbc a,a sub d ld d,a ret
I hope I've finally got it right
1012
« on: May 26, 2011, 03:47:34 pm »
will NegHL also make negative numbers positive?
1013
« on: May 26, 2011, 02:44:11 pm »
then how do the negative number actually works? I thought the 7th bit on 8 bit numbers was the sign bit, and the 15th one with 16bit numbers, but from what you told me, I think what i thought of negative numbers was totally wrong.
1014
« on: May 25, 2011, 03:19:41 pm »
OK, I swapped it
Will this work as a signed fixed-point divide?
MulFP: ;Multiplies 2 16bit fixed-point numbers ;IN: de, bc ;OUT: de * bc in hl ;DESTROYS: bit 7, d jr nz, _MulFP_FirstNeg bit 7, b jr nz, _MulFP_AnsNeg jr z, _MulFP_AnsPos _MulFP_FirstNeg: bit 7, b jr nz, _MulFP_AnsPos _MulFP_AnsNeg: ld a, 1 push af jr _MulFP_Cont _MulFP_AnsPos: ld a, 0 push af _MulFP_Cont res 7, b res 7, d call Mul16 ld l, h ld h, e pop af cp 1 call z, NegHL ret
Mul16: ; DEHL=BC*DE ld hl,0 ld a,16 Mul16Loop: add hl,hl rl e rl d jp nc,NoMul16 add hl,bc jp nc,NoMul16 inc de ; This instruction (with the jump) is like an "ADC DE,0" NoMul16: dec a jp nz,Mul16Loop ret
NegHL: xor a sub l ld l,a sbc a,a sub h ld h,a ret
1015
« on: May 25, 2011, 01:48:00 pm »
I already posted that I've got a ti-84 plus and a TI-30XIIB, but I now also got a picture
The ti-84 plus is running a very cool game on the picture. also, sorry for the low resolution - I used my scanner
1016
« on: May 23, 2011, 03:54:39 pm »
so, will this work as a signed fixed-point division?DivFP: ;IN: hl, de ;OUT: hl = hl / de bit 7, h jr nz, _DivFP_FirstNeg bit 7, d jr nz, _DivFP_AnsNeg jr z, _DivFP_AnsPos _DivFP_FirstNeg: bit 7, h jr nz, _DivFP_AnsPos _DivFP_AnsNeg: ld a, 1 push af jr DivFP_Cont _DivFP_AnsPos: ld a, 0 push af _DivFP_Cont res 7, h res 7, d ld a, h ld h, l ld l, 0 call Div24by16 pop af cp 1 call z, NegHL ret
Div24by16: push hl ;INPUTS: ahl = dividend de = divisor ;1 pop ix ;OUTPUTS: ahl = quotient de = divisor ;0 ld hl,0 ld b,24 _Div24by16loop: add ix,ix rla adc hl,hl jr c,_Div24by16setbit or a sbc hl,de add hl,de jr c,_Div24by16skip _Div24by16setbit: or a sbc hl,de inc ix _Div24by16skip: djnz _Div24by16loop push ix ;1 pop hl ;0 ret
NegHL: xor a sub l ld l,a sbc a,a sub h ld h,a
1017
« on: May 22, 2011, 02:50:34 pm »
The first one is the funniest thing ever seen
1018
« on: May 22, 2011, 02:43:26 pm »
i checked the readmy, and it said certain versions aren't supported. I checked the serial number, and mine was one of them
1019
« on: May 22, 2011, 02:38:39 pm »
I only have a ti-84plus(new version, so it can't run tiboy ) and a ti-30xIIB
1020
« on: May 22, 2011, 01:48:13 pm »
Just let him think of his own eastereggs. They should be FOUND, not sugested
Pages: 1 ... 66 67 [68] 69 70 71
|