some comments and minor fixes
This commit is contained in:
parent
02a19ef783
commit
8fde6f1e74
13
Makefile
13
Makefile
@ -25,17 +25,8 @@ SRCS += main.c
|
||||
|
||||
# asm files
|
||||
# S maiuscola! Invoca prima il compilatore gcc che interpreta macro e altro
|
||||
# ASRC = main.S
|
||||
ASRC += main.S frame.S
|
||||
#ASRC += video.S
|
||||
#ASRC += sleep.S
|
||||
# ASRC += variables.S
|
||||
#ASRC += lines/line_white.S
|
||||
#ASRC += lines/line_black.S
|
||||
#ASRC += lines/line_mid.S
|
||||
#ASRC += lines/line_syncs.S
|
||||
#ASRC += lines/line_calc.S
|
||||
# ASRC += lines/line_digits.S
|
||||
ASRC += main.S
|
||||
ASRC += frame.S
|
||||
|
||||
# header files
|
||||
# Specify here libraries! Makefile will check existance before launching
|
||||
|
@ -1,3 +1,8 @@
|
||||
/* frame.cpp
|
||||
* Takes a black/white (1bpp) PNM ASCII-armored image as input,
|
||||
* and produces the frame.S assembly code to draw it
|
||||
* as an analog video signal for this project's kernel.
|
||||
* */
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
|
13
main.S
13
main.S
@ -61,8 +61,6 @@ int_horizontal_sync: ; +3
|
||||
cpi r31, 0 ; +21
|
||||
breq enter ; +23
|
||||
jmp int_horizontal_sync_end
|
||||
# cpi r30, VERTICAL_OFFSET ; +23
|
||||
# brlo int_horizontal_sync_end ; +24
|
||||
|
||||
enter:
|
||||
; here, +23 or +24 cycles have passed since horizontal sync
|
||||
@ -112,17 +110,6 @@ int_timer_0:
|
||||
|
||||
ijmp
|
||||
|
||||
# ; draw things
|
||||
# ldi r30, lo8(line_buffer)
|
||||
# ldi r31, hi8(line_buffer)
|
||||
|
||||
#.rept LINE_BUFFER_SIZE
|
||||
# ld r29, z+
|
||||
# out IO(PORTB), r29
|
||||
# nop
|
||||
#.endr
|
||||
|
||||
|
||||
.global jump_table_return_address
|
||||
jump_table_return_address:
|
||||
pop r29
|
||||
|
Loading…
Reference in New Issue
Block a user