megadrive_test1

changeset 2:51d1d6761601

copied the bgset code from samurai's article to test that my dev setup is actually working
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 30 Jan 2017 16:57:51 +0200
parents 9e7f64c4fe7a
children 54739a11be66
files src/main.s
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/src/main.s	Mon Jan 30 08:29:05 2017 +0200
     1.2 +++ b/src/main.s	Mon Jan 30 16:57:51 2017 +0200
     1.3 @@ -1,4 +1,12 @@
     1.4  	.text
     1.5  	.global main
     1.6  main:
     1.7 +	move.l #0xc00000, %a0
     1.8 +	move.l #0xc00004, %a1
     1.9 +	move.w #0xc000, (%a1)
    1.10 +	move.w #0, (%a1)
    1.11 +	move.w #0x1f8, (%a0)
    1.12 +	move.w #0x8700, (%a1)	| set bg color to 0
    1.13 +	move.w #0x8004, (%a1)
    1.14 +	move.w #0x8144, (%a1)	| enable display 
    1.15  	rts