Search found 23 matches

by Badger
Wed Dec 26, 2018 9:50 am
Forum: 6502 assembly coding
Topic: Substraction and Addition
Replies: 3
Views: 290

Re: Substraction and Addition

That code for subtraction looks correct to me (not that I am any expert). I dont know if there is any faster way though. As for setting the carry flag, from whatr I understand it goes like this :- Consider a simple subtraction of X= 5 - 3 The way the processor handles subtration is actually via an a...
by Badger
Tue Dec 25, 2018 10:08 am
Forum: General Discussion
Topic: Christmas Break
Replies: 8
Views: 445

Re: Christmas Break

Have a great christmas everyone and best wishes for #7E3

:D
by Badger
Sun Dec 23, 2018 10:05 am
Forum: 6502 assembly coding
Topic: How to create random number with machine code?
Replies: 4
Views: 251

Re: How to create random number with machine code?

I can confirm Symoon's answer is correct.

In basic you can just do :-
POKE 0,PEEK(#308)AND3

and in assembly

lda $0308
and #$03
sta $00
rts
by Badger
Sun Nov 04, 2018 1:27 pm
Forum: C programming
Topic: Textmode Sideways Scroller
Replies: 24
Views: 2046

Re: Textmode Sideways Scroller

If anyone is interested here is an update. Improved graphics. Soundtrack player added. The beginning of a storyline for this and future levels. Still a lot of bugs to iron out, but getting there slowly. I have ideas for the next 2 or 3 levels maybe more. The redefine chars scrolling method was tried...
by Badger
Thu Nov 01, 2018 7:16 pm
Forum: 6502 assembly coding
Topic: My first ASM and it doesnt do what I expect
Replies: 5
Views: 479

Re: My first ASM and it doesnt do what I expect

Excellent, thankyou both. It seems I was on the right track but not quite there or as a famous comedian once said about his piano playing, "I play all the right notes, just not in the right order" :D I wasnt expecting to produce the most optimised code at my first attempt. The reason for using hex i...
by Badger
Wed Oct 31, 2018 11:02 pm
Forum: 6502 assembly coding
Topic: My first ASM and it doesnt do what I expect
Replies: 5
Views: 479

My first ASM and it doesnt do what I expect

A first exploration of assembly and already I have questions. I think its my brain not registering something correctly since the code below compiles and runs but does not give the results I was expecting. The code should plot a vartical column of charaters in column 37 of the text screen with the ch...
by Badger
Fri Oct 26, 2018 4:02 pm
Forum: C programming
Topic: Textmode Sideways Scroller
Replies: 24
Views: 2046

Re: Textmode Sideways Scroller

This is still under development, well more of a re-write to make it more modular as it was becoming un-wieldy. I have been taking on board the comments here and some are being worked on right away (improved scrolling for example), soundtrack player of some kind and probably the most important, the a...
by Badger
Sun Oct 14, 2018 10:30 am
Forum: Games
Topic: Space Invader - C vs Basic
Replies: 4
Views: 741

Re: Space Invader - C vs Basic

Thanks Dbug. These little projects are my method of testing and converting things betweem languages. Most of the code is quick and dirty but is allowing me to figure out little routines that can be incorporated into a bigger project. I will gladly share and it maybe interesting for people to see how...
by Badger
Sat Oct 13, 2018 11:09 pm
Forum: Games
Topic: Space Invader - C vs Basic
Replies: 4
Views: 741

Space Invader - C vs Basic

I decided to compare basic with c and what better way to do it than using the classic Space Invaders. The basic program is from a listing in "Meteoric programming" and is playable if a little slow. I then converted it using very dirty code, that could be tidied up somewhat given more time, but for t...
by Badger
Fri Oct 12, 2018 6:14 pm
Forum: Mags and books
Topic: EAD65C and MINITEXT Manuals
Replies: 5
Views: 1561

EAD65C and MINITEXT Manuals

I have recently purchased from Ebay a selection of books (9 Oric Specific and 1 6502 programming book). 2 of them would be very easy to scan as they ar not bound. They are a user manual for EAD65C by OPEL Ltd and a MiniText user manual also by OPEL Ltd. 2 Questions, 1) Would they be of interest to a...
by Badger
Tue Oct 09, 2018 8:01 pm
Forum: C programming
Topic: Adding MYMPlayer to C
Replies: 7
Views: 792

Re: Adding MYMPlayer to C

Works perfectly.
by Badger
Tue Oct 09, 2018 7:26 pm
Forum: C programming
Topic: Adding MYMPlayer to C
Replies: 7
Views: 792

Re: Adding MYMPlayer to C

I just figured out what I did to get the sedoric commands working. I copied the sedoric.s (which had the _sedoric in it) into the scroller working directory and compiled with the c program. This should have triggered in my brain that I should be able to do the same with the music player.... but it d...
by Badger
Tue Oct 09, 2018 7:11 pm
Forum: C programming
Topic: Adding MYMPlayer to C
Replies: 7
Views: 792

Re: Adding MYMPlayer to C

Thanks, I'll give that a try :)
by Badger
Tue Oct 09, 2018 6:48 pm
Forum: C programming
Topic: Adding MYMPlayer to C
Replies: 7
Views: 792

Re: Adding MYMPlayer to C

Dbug wrote Basically the whole "sedoric" invocation is kind of wonky (and by the way, how did you get it to work, I had to add some lines to my library.ndx! -sedoric.s _sedoric I dont remember having to change the library files and when I looked the _sedoric was already there (although I could have ...
by Badger
Sun Oct 07, 2018 9:53 pm
Forum: C programming
Topic: Adding MYMPlayer to C
Replies: 7
Views: 792

Adding MYMPlayer to C

I'm trying to add the mymplayer to my C game with a few issues. So I did this #include <lib.h> main(){ sedoric("!DIR"); //just display disk contents sedoric("!MYMPLAYER.BIN"); //load mymplayer to mem sedoric("!BUBBLE.BIN"); //load bubble bobble tune call(25856); //#6500 } It builds runs and the musi...