Skip to content

Commit

Permalink
Some minor details on putchar and setBorderColour
Browse files Browse the repository at this point in the history
  • Loading branch information
lronaldo committed Apr 25, 2015
1 parent 20e3be9 commit 6e67f78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,3 @@ printer.txt
*.binamsdos
*.binamsdos.log
cpctelera/tools/sdcc-3.4.3/share
cpctelera/tools/sdcc-3.4.3/src/debugger/mcs51/Makefile
cpctelera/tools/sdcc-3.4.3/src/debugger/mcs51/config.h
cpctelera/tools/sdcc-3.4.3/src/support/sdbinutils/binutils/arlex.c
cpctelera/tools/sdcc-3.4.3/src/support/sdbinutils/binutils/arparse.c
cpctelera/tools/sdcc-3.4.3/src/support/sdbinutils/binutils/arparse.h

8 changes: 5 additions & 3 deletions cpctelera/src/strings/cpct_putChar.s
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,21 @@

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Function: void putchar(char c)
;; Function: putchar
;;
;; Brief:
;; Prints a character on the screen using firmware routines. This function is
;; required by printf when we use C standard library.
;;
;; C Definition:
;; void putchar(char c)
;;
;; Details:
;; This function is required by C standard library to be able to use printf.
;; It defines a way to print a given character to the screen. This version of the
;; function makes use of firmware to print.
;;
;; Known limitations:
;; Firmware must be activated to be able to use this function.
;; *Firmware* must be *ENABLED* to be able to use this function.
;;
;; Destroyed Register values:
;; AF, BC, DE, HL
Expand Down
4 changes: 2 additions & 2 deletions cpctelera/src/video/videomode.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ extern void cpct_setPALColour (u8 pen, u8 hw_ink);
/// Changes the colour of the screen border.
///
/// C Definition:
/// #define *cpct_setBorderColour* (HW_C) <cpct_setPALColour> (16, (HW_C))
/// #define *cpct_setBorderColour* (HWC) <cpct_setPALColour> (16, (HWC))
///
/// Input Parameters (1 Byte):
/// *HW_C* - Hardware colour value for the screen border.
/// *HWC* - Hardware colour value for the screen border.
///
/// More information:
/// This is not a real function, but a C macro. Beware of using it along
Expand Down

0 comments on commit 6e67f78

Please sign in to comment.