Search found 3 matches

by goyo
Wed Jul 17, 2019 5:55 pm
Forum: Cross development tools
Topic: disable keyboard to gain speed ?
Replies: 2
Views: 84

Re: disable keyboard to gain speed ?

20% is not the keyboard reading, it's the total cost of the default ROM IRQ, and there are multiple reasons for that: - it runs at 100hz, which for all intent and purpose is completely stupid, they should have used a 50hz interrupt - it is doubly vectorized, so the ROM vector in FFFE-FFFF jumps to ...
by goyo
Wed Jul 17, 2019 5:12 pm
Forum: Cross development tools
Topic: disable keyboard to gain speed ?
Replies: 2
Views: 84

disable keyboard to gain speed ?

Is it possible in the c language to disable the Oric keyboard management and read directly the codes of the keyboard?
would anyone have the code in c?
I've heard that it takes 20% of the oric processor... :!: :?:
by goyo
Thu Mar 07, 2019 2:57 pm
Forum: 6502 assembly coding
Topic: How to create random number with machine code?
Replies: 12
Views: 2928

Re: How to create random number with machine code?

I discovered this online somewhere to give integers upto 255 :- getrand .( lda $01 beq doEor asl beq noEor ;if the input was $80, skip the EOR bcc noEor doEor eor #$1d noEor sta $01 rts .) All you need to do is seed $01 with any number at the start or again later with something like the value of th...