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 - Ephraim B

Pages: [1] 2
1
ASM / Re: Is this a good z80 ASM book for me
« on: March 23, 2015, 09:10:31 am »
It's not the best for me since my mother restricts my computer time. I would much rather read a tutorial in a book. What's the best z80 book for me?



Is this book better: http://www.amazon.com/Programming-Z80-Rodnay-Zaks/dp/0895880695/ref=cm_sw_em_r_tt?

Edit Sorunome: Merged double post

2
ASM / Re: Is this a good z80 ASM book for me
« on: March 23, 2015, 08:59:47 am »
1. These are generic z80 books and not all things will directly apply to TI calculators.

I don't think this should matter since I want to write ASM programs without the #include file anyways

3
ASM / Is this a good z80 ASM book for me
« on: March 22, 2015, 09:11:21 pm »
Due to my mother's computer restrictions, I feel like buying a z80 ASM book from Amazon would be better.

Is this book good for me: http://www.amazon.com/dp/0471081248/ref=pe_385040_128020140_TE_3p_dp_1?

4
Other / Re: Technology Emergency!
« on: March 19, 2015, 09:04:02 pm »
He's not a bully

5
Other / Re: Technology Emergency!
« on: March 19, 2015, 08:27:12 pm »
This kid actually is the tech guy in my school and he said to me that he knows everything. He said to me that he's not telling me about his computer and only his family knows about it. He also said to me that if he tells me, he's going to have to kill me. He also said to me that his wifi router is highly secure and I asked him if his family has a super computer and he said "maybe". He told me that his family's high tech computer is locked up in a room and that high tech computer is very secure. He said to me that that high tech computer is impossible to hack.

6
Other / Re: TECHNOLOGY EMERGENCY!
« on: March 19, 2015, 03:43:54 pm »
He said to me he's not telling me

7
Other / Technology Emergency!
« on: March 19, 2015, 03:38:08 pm »
Someone in my class, Azriel Ginian, said to me that his house is very high tech and his computer is also. He also said to me that he knows all the programming languages including Machine Code and he's only 15 years old! I need to work very fast. Can anyone help me quickly learn Machine Code?

Edit: Removed all Caps title. Please look up netiquette it might help some. - Geekboy

8
ASM / Re: Number guessing game without a #include file
« on: March 08, 2015, 12:00:34 am »
Did Hooloovoo challenge you to make it or ask omnimaga to make it for you?

I never asked you to make my program for me. I asked that I want you to open up GitHub issues: https://github.com/EphraimB/Number-Guessing-game-z80-ASM/issues
so I can know what steps I need to do.

9
ASM / Number guessing game without a #include file
« on: March 05, 2015, 01:16:10 pm »
Hooloovoo gave me a challenge to make a Number guessing game with no b_call's and only A and HL.

My code is at: https://github.com/EphraimB/Number-Guessing-game-z80-ASM

Can someone please make new issues of what I need to get done to complete this?

10
ASM / Re: WizardC8
« on: March 01, 2015, 12:51:08 pm »
There are several ways of going about doing this, and very few of them actually use the CP instruction, since that only works between two one byte values, whereas an OP "register" is a memory construct and is not directly supported by the CPU (meaning you have to do this in several steps to simulate support, which is what ASM is really about)

1. Compare the two OP registers directly by first comparing the exponent. If one is greater than the other, you can stop already. If not, then compare each byte afterwards until something happens. What that something is... is up to you.
Code: [Select]
ld DE,ADDRESSOFFIRSTOPREG+
 ld HL,ADDRESSOFSECONDOPREG+
 ld b,8
Loop:
 ld a,(de)
 cp (hl)
 jr nz,SomethingHappened
 djnz Loop
 ret
SomethingHappened:
;carry=(DE)<(HL)
;your code here
 ret


I want to start with comparing the integer to make sure it doesn't go below zero



I made a new ASM program to try debugging my code:

Code: [Select]
#include "ti83plus.inc"
.org $9D93
.db $BB,$6D

item1UserInputLoop: ; label item1UserInputLoop

b_call(_GetKey) ; Waits for a key to be pressed

CP kUp ; If the up arrow key is pressed,
JR Z,Increase ; goto label Increase

CP kDown ; If the down arrow key is pressed,
JR Z,Decrease ; goto label Decrease

CP kEnter ; If the Enter key is pressed,
JP Z,DollarsToGallionsResults ; goto label DollarsToGallionsResults.

JR item1UserInputLoop ; Else, loop back to
; label item1UserInputLoop
Increase: ; label Increase

LD HL,DollarsValue
b_call(_Mov9ToOP1)

LD A,DollarsValue

CP 255 ; If Register A=255,
JR Z,item1UserInputLoop ; goto label item1UserInputLoop

LD HL,DollarsValueChange
b_call(_Mov9ToOP2)
b_call(_FPAdd)

LD HL,OP1
LD DE,DollarsValue
LD BC,9
LDIR

JR item1UserInputDisplay ; goto label item1UserInputDisplay

Decrease: ; label Decrease

LD HL,DollarsValue
b_call(_Mov9ToOP1)

LD DE,Zero

DecreaseLoop:

LD A,(DE)

CP (HL)
JR Z,item1UserInputLoop

ContinueDecrease:

LD HL,DollarsValueChange
b_call(_Mov9ToOP2)
b_call(_FPSub)

LD HL,OP1
LD DE,DollarsValue
LD BC,9
LDIR

item1UserInputDisplay: ; label item1UserInputDisplay

LD A,16
LD (penRow),A
LD A,44
LD (penCol),A

LD A,$F3
b_call(_VPutMap)

LD A,30
LD (penRow),A
LD A,44
LD (penCol),A

LD A,$07
b_call(_VPutMap)

LD A,23 ; 23->Register A
LD (penRow),A ; Register A->(penRow)
LD A,45 ; 45->Register A
LD (penCol),A ; Register A->(penCol)

LD HL,DollarsValue
b_call(_Mov9ToOP1)

LD A,6
b_call(_DispOP1A)

JP item1UserInputLoop ; goto label item1UserInputLoop

DollarsToGallionsResults:

RET

;---------Variables-----------

DollarsValue:

.db $00,$80,$00,$00,$00,$00,$00,$00,$00

Zero:

.db $00,$80,$00,$00,$00,$00,$00,$00,$00

DollarsValueChange:

.db $00,$80,$10,$00,$00,$00,$00,$00,$00

DollarRateInGallions:

.db $00,$7E,$99,$30,$48,$65,$93,$84,$31

GallionsValue:

.db 0,0

SicklesValue:

.db 0

KnutsValue:

.db 0

GallionRateInDollars:

.db $00,$81,$10,$07,$00,$00,$00,$00,$00

SickleRateInDollars:

.db $00,$7F,$59,$00,$00,$00,$00,$00,$00

KnutRateInDollars:

.db $00,$7E,$20,$00,$00,$00,$00,$00,$00

;------------Data-------------

txtSelect1UserInputDS:    ; label txtSelect1UserInputDS

.db $F2," ",0    ; TI's ASCII: $F2=$


.end
END

The number stopped decrementing when I pressed the down key. I want it to decrement when it's at any number except zero.

What did I do wrong?

Edit Sorunome: merged double post



Development reset. I'm starting again from scratch and doing it without a #include file this time.

11
Computer Programming / x86 machine code
« on: February 19, 2015, 09:42:29 am »
I feel like those high level languages are not actual programming, for example, there's a whole compiler to compile ASM down to machine code and a whole #include file to compile C down to machine code. I feel like this is cheating and anyone can make mistakes on a compiler. I feel like machine code is actual programming. Is there any tutorials for x86 machine code?

12
Miscellaneous / Re: Post your desktop
« on: February 18, 2015, 09:47:06 pm »
I have Windows 10 Build 9926 with 2 monitors on a Dell Latitude E4300

13
Web Programming and Design / Corest web programming
« on: February 18, 2015, 09:38:11 pm »
I want to start creating my own website that I can see my emails, IRC chats, my calculator programs, all other notifications, and a prep for my future OS I plan on programming. Just like every programming language is compiled to Machine code, what is Web programming compiled down to?

14
Computer Programming / Re: How to make a IRC bot
« on: February 18, 2015, 08:42:12 pm »
Is it possible to download and put the bots DoorsCS and worm to my channel?

15
What I mean by projector based is instead of converting from a pixel based computer to a projector, you program directly to the projector.

Pages: [1] 2