view code_part1/OSTC_code_asm_part1/scribble_15.asm @ 102:b13ace8d052f

Scribble_15 at wakeup...
author JeanDo
date Mon, 13 Dec 2010 23:49:52 +0100
parents
children
line wrap: on
line source

;=============================================================================
;
;    File scribble_15.asm
;
;    HW logo in 320x240
;
;    This program is free software: you can redistribute it and/or modify
;    it under the terms of the GNU General Public License as published by
;    the Free Software Foundation, either version 3 of the License, or
;    (at your option) any later version.
;
;    This program is distributed in the hope that it will be useful,
;    but WITHOUT ANY WARRANTY; without even the implied warranty of
;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;    GNU General Public License for more details.
;
;    You should have received a copy of the GNU General Public License
;    along with this program.  If not, see <http://www.gnu.org/licenses/>.
;
;    Copyright (c) 2010, JD Gascuel.
;=============================================================================
; HISTORY
;  2010-12-13 : [jDG] Creation

scribble_15 code
#include scribble_15.inc

scribble_15:
    clrf    WREG
    movff   WREG,win_top            ; Full 12 bits address.
    movff   WREG,win_leftx2
    movlw   LOW(scribble_15_block)
    movwf   TBLPTRL
    movlw   HIGH(scribble_15_block)
    movwf   TBLPTRH
    movlw   UPPER(scribble_15_block)
    movwf   TBLPTRU
    call    color_image

    movlb   1                       ; Back to bank 1 !
    return