X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fvideo_asm.s;h=ac91fd069117693242691c1f400b55e056f05cb5;hp=1f7995c6914524a1f5cf89a5d7ca5e217bea7781;hb=81c11bdd80190ec319a82b0402173cfb65fcbf72;hpb=7dcd5071e600f8cf48174d1fddb3dba57ec9476d diff --git a/src/video_asm.s b/src/video_asm.s index 1f7995c..ac91fd0 100644 --- a/src/video_asm.s +++ b/src/video_asm.s @@ -25,3 +25,20 @@ wait_vsync: and $8, %al jz 0b ret + + .global set_pal_entry +set_pal_entry: + mov 4(%esp), %al + mov $0x3c8, %dx + out %al, %dx + inc %dx + mov 8(%esp), %al + shr $2, %al + out %al, %dx + mov 12(%esp), %al + shr $2, %al + out %al, %dx + mov 16(%esp), %al + shr $2, %al + out %al, %dx + ret