Search results
32 bit long to ascii
Score: 113.43 %,
Type: Forum topic , Comments: 16 comments
to decimal
; In: E:HL = 24-bit binary number (0-16777215)
; Out: DE:HL = 8 digit decimal form (packed BCD)
; ... being processed + 1
FIND1: ADD IX,IX
RL C ; shift bit 23-0 from ... All bits 0:
RES 0,L ; least significant bit not 1 after all .. ...
3D raycasting
Score: 133.25 %,
Type: Forum topic , Comments: 160 comments
Whereas a zoom out scaling by factor 2 would produce this 2 bytes result :
F0
0F
Is that correct ... by the rest of the code?
So the loop would do nothing but store the byte out (0x98) (or whatever the port ... would produce this 2 bytes result :
F0
0F
Is that correct ?
The scaling acts ...
50/60 Hz support for modern games
Score: 140.25 %,
Type: Forum topic , Comments: 54 comments
sparcles not regular but only sometimes, that was the jump from adjust 15 to adjust 0!
An INDICATION ... to see if you were right
10 screen 8
20 set page 1,1
30 for i=0 to 255: line (i,0)-(i,211),i:next
40 set page 0,0
50 '
60 copy (0,0)-(255,211),1 to (0,0),0
65 for j=0 to 100
70 for i=-7 to 8
80 set ...
5th sprite on mxs1
Score: 108.58 %,
Type: Forum topic , Comments: 5 comments
A very basic question
I was expecting to read the "5th sprite flag" reading the location at 0xF3E7
and doing a bit 6 operation, my code (the compiler's one) is
halt
ld a,(F3E7)
bit 06h,a
jp nz,l70
[...]
Using the debugger (in bluemsx) i find that A=9Fh independenty ...
64 sprites on screen
Score: 127.55 %,
Type: Forum topic , Comments: 1 comment
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Interrupt service routine
;
code @ 0x0038
push hl
push de
push bc
push af
_setVdp 5,0x36 ; SAT at 0x1b00 -> first sat, first 32 sprites
_setVdp 7,0x0E ; 1st background color
in a,(0x99) ; reset flags from previous interrupt
; do ...
64K rom - how to set to rom page 3 and set it back to ram
Score: 126.34 %,
Type: Forum topic , Comments: 85 comments
to ram?
I need something similar to the routine setrompage0 from this excellent example from karoshi forum (that deals with page 0):
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; set pages and subslot
;
ENASLT: equ 024h
RSLREG: equ 0138h
EXPTBL: equ 0FCC1h ; Bios ...
8-bit atan2
Score: 139.48 %,
Type: Forum topic , Comments: 24 comments
= y in -128,127
;
; output
; A = angle in 0-255
; |
; q1 | q0
;------+-------
; q3 | q2
; |
atan2:
ld de,0x8000
ld a,c
add a,d
rl e ; y-
ld a,b
add a,d
rl e ; x-
dec e
jp z,q1
dec e
jp z,q2
dec e
jp z,q3
q0:
ld ...
8253 timer on msxTR (in r800 mode)
Score: 122.68 %,
Type: Forum topic , Comments: 15 comments
?
If not, could it be configured with a resolution of a fraction of 0.125ms and polled ... (sample_address_wave_2),HL
;carry = 0
8 ld bc,(sample_end_address_wave_2)
2 sbc hl,bc ;bc = end address of wav
2 jr ... wraps
1 add hl,de ;de' = fixpoint speed low
1 exx
1 adc hl,de ;de = fixpoint speed hi
;carry = 0 ...
A Doom engine in about 2000 lines of C
Score: 138.78 %,
Type: Forum topic , Comments: 31 comments
simple 2 line example:
10 DEFINT A-Y:COLOR 15,0,0:SCREEN 5
20 _TURBO ON
30 FOR I=0 TO 1500
40 Z=0:D=150+I
50 IF D<>0 THEN U=(I+Z)*140/D
60 LINE (U,U)-(255-U,U)
70 Z=-200:D=D+Z
80 IF D<>0 THEN U=(I+Z)*140/D
90 LINE (U,U)-(255-U,U),0
100 NEXT I
... now first thing to add would be skipping the line ...
A recurrent problem with bluemsx - Can this emulator hang windows XP?
Score: 110.31 %,
Type: Forum topic , Comments: 9 comments
0.6.3RC1 beta? I haven't got any reports how it runs under Win2k yet.
MeitsNearDark: I have ...
