Does anyone have a simple code in assembly that loads an image into video memory?
Thanks,
Posted Thu Sep 15, 2011 7:09 PM
Posted Fri Sep 16, 2011 4:34 AM
; ; >>> Simple picture display in assembler <<< ; ; 2011-09-16 by JAC! org $2000 start mwa #dl $230 ;Set DL points mva #$34 708 ;Set 3 colors mva #$38 709 mva #$0e 710 jmp * dl .local dc = $0e ;Antic mode E/graphics 15 .byte $70,$70,$70 ;3*8=24 blank lines in PAL .byte $40+dc ;LMS instruction for upper half .word picture :95 .byte dc ;1+95=96 lines, 40 bytes each .byte $40+dc ;LMS instruction for upper half .word picture+$f00 ;Will be at 4k boundary :95 .byte dc ;1+95=96 lines, 40 bytes each .byte $41 ;Restart with vertical blank .word dl .endl ;Picture has $1e00 bytes, $f00 for the upper half, $f00 for the lower half ;In order to prevent ANTIC from cross a 4k boundary, we chose the base address ;in a way that the upper half is in the first 4k, and the lower half in 2nd 4k. org $2100 picture ins "SpaceHarrier.pic"
Edited by JAC!, Fri Sep 16, 2011 4:40 AM.
Posted Fri Sep 16, 2011 4:36 AM
Edited by MaPa, Fri Sep 16, 2011 4:37 AM.
Posted Sun Sep 18, 2011 10:14 AM
Posted Sun Sep 18, 2011 10:44 AM
Posted Fri Sep 23, 2011 10:33 PM
Posted Fri Sep 23, 2011 11:29 PM
GRAPHICS 15 OPEN #1,4,0,"D:PICTURE.PIC" BGET #1,DPEEK(88),7680 CLOSE #1
Edited by JAC!, Fri Sep 23, 2011 11:30 PM.
0 members, 0 guests, 0 anonymous users