Search found 57 matches

by christian
Thu Nov 01, 2018 2:41 pm
Forum: 6502 assembly coding
Topic: My first ASM and it doesnt do what I expect
Replies: 5
Views: 229

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

You're right Dbug :oops:
decrem must be:

Code: Select all

decrem
	sec			; Calc new display address
	lda write+1	; LSB
	sbc #40
	sta write+1                          
	lda write+2	; MSB
	sbc #0
	sta write+2
by christian
Thu Nov 01, 2018 1:04 am
Forum: 6502 assembly coding
Topic: My first ASM and it doesnt do what I expect
Replies: 5
Views: 229

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

I think the first error is a confusion: #define define a constant. The line #define DISPLAY_ADRESS ($BB80+37+Y_POS*40) define a constant, not a variable. Second, you use Y as a row index and do a sta xxxx,y in order to put a character on the row Y of the screen. But one row is 40 characters,if you w...
by christian
Fri Jun 29, 2018 11:29 am
Forum: Emulators
Topic: Oricutron : Joysticks not working
Replies: 1
Views: 360

Re: Oricutron : Joysticks not working

I think the issue is in joy_build_mask() function in joystick.c If you uncomment the sprintf() call in joy_filter_event() function, you can see the joystick state changing in the title bar of the window. In the joy_build_mask(): the joystick state mask is only build when joyinterface is set to 'ijk'...
by christian
Sat May 19, 2018 12:40 pm
Forum: 6502 assembly coding
Topic: 6502 flags C, N, Z, V and tests
Replies: 7
Views: 860

Re: 6502 flags C, N, Z, V and tests

Sometimes you can also use the BIT instruction: "BIT sets the Z flag as though the value in the address tested were ANDed with the accumulator. The S and V flags are set to match bits 7 and 6 respectively in the value stored at the tested address." I have often seen using this instruction to set the...
by christian
Tue May 08, 2018 3:15 pm
Forum: General Discussion
Topic: Oric Explorer v2.0 is up for adoption!!!
Replies: 16
Views: 1982

Re: Oric Explorer v2.0 is up for adoption!!!

Hi,

NekoNoNiaow, I can start OricExplorer v2, reviewed in CEO, on Linux with Mono, so maybe you can start it with the Mono port on Mac OS too.
by christian
Sun Apr 29, 2018 8:36 pm
Forum: Cross development tools
Topic: BomberZ.bas and bas2tap ..
Replies: 20
Views: 2747

Re: BomberZ.bas and bas2tap ..

I have my own "virtualbasic like" written in shell.
In case you want try BomberZ, here is the tap file.
by christian
Sun Apr 29, 2018 2:31 pm
Forum: Cross development tools
Topic: BomberZ.bas and bas2tap ..
Replies: 20
Views: 2747

Re: BomberZ.bas and bas2tap ..

Hi,
It looks like it's written with virtualbasic: http://virtualbasic.org/
But the syntax is incorrect. Every GOTO &label should be GOTO @label, same with THEN &label and ON xx GOTO &label1,&label2...
by christian
Sat Apr 22, 2017 9:21 pm
Forum: Operating systems
Topic: FT-DOS disk size
Replies: 2
Views: 2997

Re: FT-DOS disk size

Hi,

The usable size is 256 bytes * 17 sectors * 41 Tracks * 2 sides = 356 864 bytes.

But, a MFM_DISK image use 256 bytes for the header and 6400 bytes per track instead of 17*256 = 4352.
256 + 6400 * 41 *2 = 525 056 bytes or about 513Ko
by christian
Sat Apr 15, 2017 9:56 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 4920

Re: XA: * manipulations

For those interested, here is the final code for this macro (header). Its purpose is to create a header for a Forth's word ; __lfa need to be defined BEFORE the first use of the macro for 2 reasons: ; 1) Fisrt LFA must be 0 ; 2) If not defined, all LFA point to the its own NFA ; __lfa=0 #define head...
by christian
Sat Apr 15, 2017 5:54 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 4920

Re: XA: * manipulations

@Dbug: Yes it works :D #define pstring(s) .( : -_start=* : .byte _len,s : len=* - _start -1 : .) pstring("TEST") pstring("TEST2") pstring("TEST33") Result ----------\/-------------\/-----------------\/ 00000000 04 54 45 53 54 05 54 45 53 54 32 06 54 45 53 54 |.TEST.TEST2.TEST| 00000010 33 33 |33| Th...
by christian
Sat Apr 15, 2017 5:40 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 4920

Re: XA: * manipulations

@iss: yes, it's the idea I've already tried something like your macro but it's not really working: #define pstring(s) -_start=* : .byte _len,s : -_end=* : -_len=_end - _start -1 pstring("TEST") pstring("TEST2") pstring("TEST33") The result is ----------\/-------------\/-----------------\/ 00000000 0...
by christian
Fri Apr 14, 2017 6:35 pm
Forum: Cross development tools
Topic: XA: * manipulations
Replies: 6
Views: 4920

XA: * manipulations

I'm trying to translate some macros from CA65 to XA. One of them takes a string as parameter and puts the length of this string followed by the string: pstring "TEST" is expanded: .byte 4,$54,$45,$53,$54 To do so, I write this XA macro: #define pstring(s) -_start=* : .byte 0,s : -_end=* : -_len=_end...
by christian
Thu Apr 13, 2017 7:40 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 25007

Re: xa and o65 format (and CC65)

Thanks :)
by christian
Thu Apr 13, 2017 6:38 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 25007

Re: xa and o65 format (and CC65)

Yes this is the only function of this option.

As your version handles correctly ':' in comments without the '-M', I think you can remove it or lets it for compatibility only but as a "do nothing function"
by christian
Thu Apr 13, 2017 5:31 pm
Forum: Cross development tools
Topic: xa and o65 format (and CC65)
Replies: 33
Views: 25007

Re: xa and o65 format (and CC65)

I'm doing some tests with your latest version (v2.2.5) Silly program: ; ; a: AUTOEXEC: 0 / 4 ; t: Nom du programme ; #define TAPE_HEADER(a,t) .db $16, $16, $16, $16, $24, $ff, $ff, $80, a, >end, <end, >start, <start, $09, t, $00 #define TAPE_HEADER_BUG(t,a) .db $16, $16, $16, $16, $24, $ff, $ff, $80...