Search found 41 matches

by Kris1978
Thu Nov 29, 2018 12:58 pm
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Re: Prince of Persia

Hmmm...okay :)

Well, for the time, I think I will stick with BASIC.....
by Kris1978
Wed Nov 28, 2018 6:56 am
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Re: Prince of Persia

Well, on a second thought, it was a mistake to learn assembly as a first programming language. What I mean by that? One year is enough time for learning the fundamentals and the mnemonics of 6502 and how to use them. But....there is a catch in my case. I've never had any previous programming ...
by Kris1978
Tue Nov 27, 2018 3:30 pm
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Re: Prince of Persia

Last (honestly) question....

Can you suggest me any books (in .pdf format for free download) or web sites, that contains listings of simple games made in 6502 assembly language with explanation text for each listing?

P.S. 1 Almost a year ago I started my journey in 6502 assembly. My initial ...
by Kris1978
Mon Nov 26, 2018 2:57 pm
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Re: Prince of Persia

Okay. So one last question....

How on earth a person can write so many lines of assembly code?

I finished reading all the basics about 6502 and it just terrifies me that someone (i.e. Jordan Mechner) had the courage (?) to write such a long-long-(really long) source code.

I mean, currently I'm ...
by Kris1978
Mon Nov 19, 2018 6:43 pm
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Re: Prince of Persia

cbmeeks wrote:
I'm sure you're aware, but the official source code is here:

https://github.com/jmechner/Prince-of-Persia-Apple-II
I know!

I'm just too lazy to count! :)
by Kris1978
Mon Nov 19, 2018 1:24 pm
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Re: Prince of Persia

Tor wrote:
Looks line 92871 lines to me (checking the .S files in the source). Including comments and declarations.
Okay. Thank you Tor for your answer.
by Kris1978
Mon Nov 19, 2018 9:49 am
Forum: Programming
Topic: Calculating the backward offset of a branch
Replies: 24
Views: 6021

Re: Calculating the backward offset of a branch

BigEd wrote:
BTW, Kris1978, you might want to check out the older thread
The Visible Computer is awesome! Both manual and software! :)

Thank you BigEd for mentioning that old thread!
by Kris1978
Mon Nov 19, 2018 9:41 am
Forum: General Discussions
Topic: Prince of Persia
Replies: 33
Views: 7772

Prince of Persia

Does anyone knows how many lines in total the source code of the original (1989) Prince of Persia is?

Mechner says in his book (page 90) "The making of Prince of Persia" "My most concrete achievement today was to print out the entire source code - all 1000 pages of it"

Does anyone knows something ...
by Kris1978
Wed Nov 14, 2018 9:27 am
Forum: Programming
Topic: Calculating the backward offset of a branch
Replies: 24
Views: 6021

Re: Calculating the backward offset of a branch

From my point of view, the CPU itself is pretty simple and easy to learn. There are three basic areas to master: the operations of the ALU, the addressing modes, and the ways to influence control flow.

What's not so simple is learning to use it effectively, because its simplicity means it has some ...
by Kris1978
Wed Nov 14, 2018 8:54 am
Forum: Programming
Topic: Calculating the backward offset of a branch
Replies: 24
Views: 6021

Re: Calculating the backward offset of a branch

Zaks' Programming the 6502 was my start, and I'd recommend it. Leventhal is also well thought of.

These days, you could try running through the easy6502 tutorial online. As different people have different learning styles, you need to find what works for you.
I have Zak's book (3rd edition) and I ...
by Kris1978
Tue Nov 13, 2018 5:40 pm
Forum: Programming
Topic: Calculating the backward offset of a branch
Replies: 24
Views: 6021

Re: Calculating the backward offset of a branch

By the way, which book do you consider as the best for self-teaching 6502 assembly language?
by Kris1978
Tue Nov 13, 2018 1:13 pm
Forum: Programming
Topic: Calculating the backward offset of a branch
Replies: 24
Views: 6021

Re: Calculating the backward offset of a branch

Thank you all so much! :)
by Kris1978
Mon Nov 12, 2018 3:10 pm
Forum: Programming
Topic: Calculating the backward offset of a branch
Replies: 24
Views: 6021

Calculating the backward offset of a branch

Branches can also be done in the reverse direction. Here is a rather inefficient,
but illustrative example:
1 ********************************
2 * AL05-LOOP PROGRAM 2A *
3 ********************************
4 *
5 * OBJ $300
6 ORG $300
7 HOME EQU $FC58
8 *
9 START JSR HOME
10 JMP SETX
11 END ...
by Kris1978
Sun Aug 12, 2018 12:52 pm
Forum: Emulation and Simulation
Topic: ASCII character set
Replies: 21
Views: 11468

Re: ASCII character set

Thank you all for your valuable help and ideas!

Currently I'm struggling to create my own xml file for Notepad++ (never used xml or Notepad++ before in my life)

Two things remain unsolved: a) How to colorize label names and how to create columns that act like a >space bar< been pressed one time ...
by Kris1978
Sat Aug 11, 2018 9:57 am
Forum: Emulation and Simulation
Topic: ASCII character set
Replies: 21
Views: 11468

Re: ASCII character set

:D Yeah....SHOULD not be too difficult..... I don't know anything about XML and I'm a n00b in 6502 assembly. Yes, it should not be too difficult..... :D