Search found 542 matches

by 777
Sun Jun 09, 2024 1:13 pm
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

Re: is there a routine that will rotate the whole or part of the screen?

Ok well it's maths. Specifically Linear Algebra which covers transformations of things in space. Linear Algebra is not very hard compared to most maths subjects. It's mainly vectors/matrices which are easily visualised in 2D and not hard to understand. Rotations (in 2D) are also described by comple...
by 777
Sun Jun 09, 2024 3:36 am
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

Re: is there a routine that will rotate the whole or part of the screen?

Well yeah but WHY are you trying to rotate part of the screen? If it's for an art package obviously it needs to be as good as possible and my 1h attempt is no good for that. EDIT: What it is good for though is rotating vertices. If it's for a game idea you want to use a proper art package on a PC a...
by 777
Sun Jun 09, 2024 3:15 am
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

Re: is there a routine that will rotate the whole or part of the screen?

It might help if you tell us what you are trying to achieve. If you just want to learn some maths to do with graphics that's great, I will open a general thread about maths then I guess. If you want to rotate images by 90, 180, 270 degrees there are much much better ways to do that. None of which i...
by 777
Sun Jun 09, 2024 2:28 am
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

Re: is there a routine that will rotate the whole or part of the screen?

Ok it's a bit crap, scaling/rotating rasterisers don't treat each individual texel as a separate pixel they are more clever than that. (60 degree rotation here). This is basically treating the pixels set as a point cloud and when rotated rounding errors are causing issues looks like. It's a lot fas...
by 777
Sat Jun 08, 2024 4:22 pm
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

Re: is there a routine that will rotate the whole or part of the screen?

Making a series of shears from a rotation matrix is basically just applying a change of basis matrix 3 times, whereas a rotation changes the basis just once. how would i do this in basic? im not very good at maths. i wouldnt know where to begin. i know it would be extremely slow but its a starting ...
by 777
Sat Jun 08, 2024 2:40 am
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

Re: is there a routine that will rotate the whole or part of the screen?

90 degrees isn't too hard. Anything else is pretty difficult you need to do a rotation of all the set pixels. Most efficient way to do that is complex numbers (more efficient than multiplying by an equivalent 2x2 rotation matrix). EDIT: Turns out the number of operations are the same though. https:...
by 777
Fri Jun 07, 2024 7:42 pm
Forum: Programming
Topic: is there a routine that will rotate the whole or part of the screen?
Replies: 25
Views: 576

is there a routine that will rotate the whole or part of the screen?

or would this be too much for the cpu? i had a look on google again but nothing.
by 777
Wed May 29, 2024 4:22 pm
Forum: Programming
Topic: how do i scroll an individual character vertically?
Replies: 7
Views: 535

Re: how do i scroll an individual character vertically?

ParadigmShifter wrote: Wed May 29, 2024 3:57 pm Here you go.
thank you. i had a feeling it might be that. lol

Edited by PJ to reduce quoting.
by 777
Wed May 29, 2024 1:32 pm
Forum: Programming
Topic: how do i scroll an individual character vertically?
Replies: 7
Views: 535

Re: how do i scroll an individual character vertically?

Try this: 10 LET a=USR “B” 20 GO SUB 100 30 PRINT AT 0,0; CHR$ 145 40 LET t=PEEK a 50 FOR n=0 TO 6 60 POKE a+n,PEEK (a+n+1) 70 NEXT n 80 POKE a+7,t 90 GO TO 30 100 FOR n=0 TO 7 110 LET t=2^n 120 POKE a+n,t 130 NEXT n 140 RETURN Mark thats great. thank you. but how do i scroll it the other way. ive ...
by 777
Wed May 29, 2024 12:00 pm
Forum: Programming
Topic: how do i scroll an individual character vertically?
Replies: 7
Views: 535

Re: how do i scroll an individual character vertically?

You need to think about it as a series of small steps and what is happening to the memory on each pass of the loop. So you need to copy each byte to the byte before it, but will already need to have saved a copy of the first byte since it needs to be POKEd as the last byte. And thus the code will l...
by 777
Wed May 29, 2024 3:15 am
Forum: Programming
Topic: how do i scroll an individual character vertically?
Replies: 7
Views: 535

how do i scroll an individual character vertically?

this is what i have so far. unfortunately it just blanks out the letter. how do i make i wrap around vertically?
ive tried lots of different ways. it either blanks the character or smudges it


Image

i redefined udg 'b' as 'A' btw
by 777
Tue May 28, 2024 3:38 pm
Forum: Programming
Topic: does the speccy have a rol or ror 6502 instruction equivalent?
Replies: 3
Views: 248

Re: does the speccy have a rol or ror 6502 instruction equivalent?

edjones wrote: Tue May 28, 2024 3:36 pmrlca?
oh yea!
by 777
Tue May 28, 2024 3:31 pm
Forum: Programming
Topic: does the speccy have a rol or ror 6502 instruction equivalent?
Replies: 3
Views: 248

does the speccy have a rol or ror 6502 instruction equivalent?

im trying to get a program to work here is the assembly org 40000 ld a,254 ld (50000),a ret org 60000 ld a,(50000) rla ld (50000),a ret ive looked at all the instructions similar to rla, rra, etc but no joy. the program just keeps shifting to the right or left and not 'rotating' https://i.postimg.cc...
by 777
Sat May 18, 2024 4:57 pm
Forum: Programming
Topic: im looking for a zoom in routine
Replies: 6
Views: 352

Re: im looking for a zoom in routine

Cheez26 wrote: Sat May 18, 2024 4:54 pm Can you repeat that question with a bit more detail? Because I'm confused by what you mean by "zoom-in routine". Which software are you even using? Forgive me if I'm being blunt.
i mean an assembly language routine
by 777
Sat May 18, 2024 4:51 pm
Forum: Programming
Topic: im looking for a zoom in routine
Replies: 6
Views: 352

im looking for a zoom in routine

nothing on google. so you can select an area of the screen and zoom into it. or something that could expand a udg. any ideas?
by 777
Wed May 15, 2024 1:56 pm
Forum: Emulators
Topic: is there an emulator that supports the sid?
Replies: 8
Views: 443

Re: is there an emulator that supports the sid?

stupidget wrote: Wed May 15, 2024 1:33 pm There was this thread a few years back:

viewtopic.php?t=2786&hilit=SID+Player

But you need a DIVmmc on real hardware, but now that you can emulate DIVmmc in FUSE Maybe that's an option?
again this is using ay's
by 777
Wed May 15, 2024 1:21 pm
Forum: Emulators
Topic: is there an emulator that supports the sid?
Replies: 8
Views: 443

Re: is there an emulator that supports the sid?

The NEXT has a SID Player: https://www.specnext.com/nextsid-tracking-on-the-next/#:~:text=em00k%20has%20released%20NextSID%2C%20a,symphonies%20in%20your%20loved%20computer. So you could use that in a NEXT Emulator: https://www.specnext.com/emulating-the-next-zesarux/ it uses the 3 ay chips and also...
by 777
Wed May 15, 2024 12:26 pm
Forum: Emulators
Topic: is there an emulator that supports the sid?
Replies: 8
Views: 443

is there an emulator that supports the sid?

cant find one on google. not the ay emulator btw. something that emulates a real sid
by 777
Sun May 12, 2024 12:42 pm
Forum: Programming
Topic: printing to the screen without using rom calls
Replies: 10
Views: 380

Re: printing to the screen without using rom calls

What about plotting your letters? Like so: Print_s: ld de, 0x13 ; start at y=1, x=3 call Plot dec e call Plot dec e call Plot inc d call Plot inc d call Plot inc e call Plot inc e call Plot inc d call Plot inc d call Plot dec e call Plot dec e call Plot which gives you a small 's' at any pixel posi...
by 777
Sun May 12, 2024 12:37 pm
Forum: Games/Software
Topic: what is the best version of space invaders written in basic?
Replies: 1
Views: 128

what is the best version of space invaders written in basic?

ive looked in the game archives on here and not really found anything that is any good. also i looked in various type in websites and found a few but they still werent great. and i also did a google search. any ideas?
by 777
Fri May 10, 2024 1:23 pm
Forum: Programming
Topic: printing to the screen without using rom calls
Replies: 10
Views: 380

printing to the screen without using rom calls

how do i do this? ive had a look on goggle but cant find any routines. im guessing this will be faster. any help will be welcome.
by 777
Tue Apr 30, 2024 2:59 pm
Forum: Programming
Topic: problems with sjasm
Replies: 4
Views: 388

Re: problems with sjasm

I can't help you directly with your case but may have some hint. Personally I do it in a different way. I always complile a single file which has in its code "pointers" to more files. There are instructions like INCLUDE or INCBIN to achieve it like: INCLUDE <Graphics.asm> INCLUDE <Menu.as...
by 777
Tue Apr 30, 2024 2:39 pm
Forum: Programming
Topic: problems with sjasm
Replies: 4
Views: 388

problems with sjasm

im trying to compile the filled vector routine from the l break into program website. unfortunately it compiles down to only 1k which i think is too small. i think its compiling the wrong file. heres the syntax that im using sjasmplus --raw=out.bin b.txt c.txt v.txt https://github.com/breakintoprogr...