Search found 10 matches

by goyo
Tue Sep 03, 2019 10:57 am
Forum: C programming
Topic: Multi-Key Handling
Replies: 10
Views: 626

Re: Multi-Key Handling

multikey.zip It's work fine ! Thank you Chema! It's very nice to make a multi-player game !! :wink: I think they are no many on Oric. void extern InitISR(); unsigned char extern KeyBank[8]; void main() { unsigned char i; InitISR(); while (1) { gotoxy(4,10); for (i=0;i<8;i++) printf("[%d]",peek(KeyB...
by goyo
Fri Aug 30, 2019 8:18 pm
Forum: Cross development tools
Topic: OSDK 1.14
Replies: 9
Views: 1520

Re: OSDK 1.14

I have the following error with the value 34 in my array .. D:\osdk\sample\c\test7\main.s(30): 08ef:Syntax error Break after 1 errors ERROR : Build failed. Is that with the patch version I gave you last time on the oric.org forum post? I see that in OSDK you did not update taptap.exe to it's latest...
by goyo
Fri Aug 30, 2019 12:42 pm
Forum: Cross development tools
Topic: OSDK 1.14
Replies: 9
Views: 1520

Re: OSDK 1.14

Hi Debug, I have the following error with the value 34 in my array .. The others blocking values under 1024 are : 290 , 546 , 802 ... that's seems multiple of 256 unsigned char data[] = {34}; void main() { } Assembling .asc "\"" D:\osdk\sample\c\test7\main.s(30): 08ef:Syntax error Break after 1 erro...
by goyo
Wed Aug 28, 2019 12:37 pm
Forum: C programming
Topic: Multi-Key Handling
Replies: 10
Views: 626

Re: Multi-Key Handling

Hi goyo! For keyboard handling I always use an idea from Dbug, which consists in updating a virtual matrix of 1s and 0s representing the state of each key (pressed or released). This matrix is updated from the interrupt service routine. You can find the code in assembler here http://miniserve.defen...
by goyo
Sat Aug 24, 2019 9:28 am
Forum: C programming
Topic: Multi-Key Handling
Replies: 10
Views: 626

Re: Multi-Key Handling

In my projects I'm using the Dbug/Chema keyboard routines too (with some minor modifications related to cc65 compatibility) - everything works nice! But for multi-key handling there is already another routine from Geoff Philips's Oric Atmos and Oric 1 Graphics and Machine code techniques - in DF li...
by goyo
Thu Aug 22, 2019 3:05 pm
Forum: C programming
Topic: Multi-Key Handling
Replies: 10
Views: 626

Re: Multi-Key Handling

Thanks a lot Chema i think that is i wanted !

I ll try to understand this script... and call it from C

have good Holidays , maybe a good time to think about a new genial Oric game ! :wink:
by goyo
Thu Aug 22, 2019 12:58 pm
Forum: C programming
Topic: Multi-Key Handling
Replies: 10
Views: 626

Multi-Key Handling

Hi,

I m looking for a multi-key press handling C script

I saw that Chema did it with Blake's 7 ( with the arrow ) . but don't found this code.

Is it possible to use a such routine since the C ?
by goyo
Wed Jul 17, 2019 5:55 pm
Forum: Cross development tools
Topic: disable keyboard to gain speed ?
Replies: 2
Views: 352

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: 352

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: 4405

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...