Browse Source

Premier commit

master
Fife 3 years ago
parent
commit
fe28c6d288
25 changed files with 14546 additions and 0 deletions
  1. BIN
      ALD.G1A
  2. 12
    0
      AddinInfo.txt
  3. 26
    0
      Ald.c
  4. 1
    0
      Ald.dlr
  5. 113
    0
      Ald.dlw
  6. 16
    0
      Ald.g1w
  7. 16
    0
      AldeBasiClib.c
  8. 31
    0
      AldeBasiClib.h
  9. 120
    0
      Debug/Addin.mak
  10. 203
    0
      Debug/Ald.lst
  11. BIN
      Debug/Ald.obj
  12. BIN
      Debug/FXADDINror.abs
  13. BIN
      Debug/FXADDINror.bin
  14. BIN
      Debug/FXADDINror.dbg
  15. 223
    0
      Debug/FXADDINror.fsy
  16. 1406
    0
      Debug/FXADDINror.map
  17. 10631
    0
      Debug/MonochromeLib.lst
  18. BIN
      Debug/MonochromeLib.obj
  19. 22
    0
      FXSH_Build.bat
  20. BIN
      INIT/CasioRAM.mem
  21. BIN
      INIT/CasioRAMCPU.mem
  22. BIN
      MainIcon.bmp
  23. 1559
    0
      MonochromeLib.c
  24. 167
    0
      MonochromeLib.h
  25. BIN
      eActivityIcon.bmp

BIN
ALD.G1A View File


+ 12
- 0
AddinInfo.txt View File

@@ -0,0 +1,12 @@
//------------------------------------------------------------------
// Addin-Application header control file, created with the CASIO SDK
//------------------------------------------------------------------
[OUTPUT] : "ALD.G1A"
[BINDATA] : "FXADDINror.bin"
[DISPNAME] : "Ald"
[APPNAME] : "@ALD"
[VERSION] : "01.00.0000"
[APL_ICON] : "MainIcon.bmp"
[MODULE_NUM] : 0
[MOD1_TITLE] : "Ald"
[MOD1_ICON] : "eActivityIcon.bmp"

+ 26
- 0
Ald.c View File

@@ -0,0 +1,26 @@

#include "fxlib.h"
#include "AldeBasiClib.h"

int AddIn_main(int isAppli, unsigned short OptionNum)
{
Cls;
Locate(2,3,Test);
RclVRAM;
Sleep(5000);
}

#pragma section _BR_Size
unsigned long BR_Size;
#pragma section


#pragma section _TOP

int InitializeSystem(int isAppli, unsigned short OptionNum)
{
return INIT_ADDIN_APPLICATION(isAppli, OptionNum);
}

#pragma section


+ 1
- 0
Ald.dlr View File

@@ -0,0 +1 @@
[DLSimRunSpace]

+ 113
- 0
Ald.dlw View File

@@ -0,0 +1,113 @@
[DLSimWorkSpace]

[_1]
Type=5
Order=1
Top=11550
Left=1725
Height=570
Width=1980
State=0
Flags=00000020
OptionA=0

[_2]
Type=1
Order=2
Top=690
Left=4395
Height=5115
Width=6090
State=0
Flags=00000001
OptionA=15
OptionB=15

[_3]
Type=6
Order=3
Top=5670
Left=4290
Height=6390
Width=5535
State=0
Flags=00000001
OptionA=0

[_4]
Type=7
Order=6
Top=4740
Left=2220
Height=3165
Width=5565
State=16
Flags=00000000
OptionA=0

[_5]
Type=8
Order=5
Top=7905
Left=2220
Height=3225
Width=5580
State=16
Flags=00000000
OptionA=0

[_6]
Type=3
Order=9
Top=0
Left=10788
Height=6348
Width=2232
State=16
Flags=00000000
OptionA=0

[_7]
Type=2
Order=8
Top=6348
Left=7800
Height=3588
Width=5220
State=16
Flags=00000000
OptionA=0

[_8]
Type=17
Order=4
Top=15
Left=-15
Height=11115
Width=2235
State=0
Flags=00000000
OptionA=0

[_9]
Type=15
Order=0
Top=870
Left=11265
Height=10215
Width=7380
State=0
Flags=00000000
OptionA=0

[_32]
Type=16
Order=7
Top=0
Left=2205
Height=4590
Width=5595
State=16
Flags=00000020
Setting=1:1:Ald.c
OptionA=0

+ 16
- 0
Ald.g1w View File

@@ -0,0 +1,16 @@
[DLSimProject]
Name=Ald
Version=1.0
Model=:fx-9860G.dlm
SourcePath=SRC
MemoryPath=INIT
MemCardPath=SDCard

[Program1]
Program=ALD.G1A
Debug=Debug\FXADDINror.dbg
LoadAddress=80000000:90100000

[Files]
SourceFile=:Ald.c
SourceFile=:MonochromeLib.c

+ 16
- 0
AldeBasiClib.c View File

@@ -0,0 +1,16 @@

#include "AldeBasiClib.h"

void PlotChg(int x, int y)
{
if(PxlTest(x,64-y) == ML_BLACK)PlotOff(x,y);
else PlotOn(x,y);
}

void PxlChg(int x, int y)
{
if(PxlTest(x,y) == ML_BLACK)PxlOff(x,y);
else PxlOn(x,y);
}



+ 31
- 0
AldeBasiClib.h View File

@@ -0,0 +1,31 @@
#ifndef ALDBASICLIB
#define ALDBASICLIB

#include "MonochromeLib.h"


#define Cls ML_clear_screen()
#define RclVRAM ML_display_vram()
#define ClrVRAM ML_clear_vram()

#define PlotOn(x,y) ML_Pixel(x,64-y,ML_BLACK)
#define PlotOff(x,y) ML_Pixel(x,64-y,ML_WHITE)

#define F-Line(a,b,c,d) ML_line(a,b,c,d,ML_BLACK)
#define Circle(x,y,z) ML_circle(x,y,z,ML_BLACK)

#define Vertical(x) ML_vertical_line(x,1,63,ML_BLACK)
#define Horizontal(y) ML_horizontal_line(y,1,127,ML_BLACK)

#define PxlOn ML_Pixel(x,y,ML_BLACK)
#define PxlOff ML_Pixel(x,y,ML_WHITE)
#define PxlTest(x,y) ML_pixel_test(x,y)

#define Text(x,y,txt) PrintMini(x,y,#txt,0)
#define Locate(x,y,txt) PrintXY(x*6,y*9,#txt,0)

void PlotChg(int x, int y);
void PxlChg(int x, int y);


#endif // ALDBASICLIB

+ 120
- 0
Debug/Addin.mak View File

@@ -0,0 +1,120 @@
################################################
# Make file for CASIO fx-9860G SDK Addin
#
############################
# Directory defines
TCDIR = F:\Casio\fx-9860G SDK\OS\SH
OSDIR = F:\Casio\fx-9860G SDK\OS
APPDIR = F:\AldTest
OUTDIR = F:\AldTest\Debug

################
# Main Defines
SH_EXEDIR=$(TCDIR)\bin

# Hitachi SH C/C++ Compiler02 phase
SHCC02_EXE=shc.exe
SHCC02_DEP="$(OSDIR)\FX\include\fxlib.h"

# Hitachi SH Assembler03 phase
SHASM03_EXE=asmsh.exe

# Hitachi OptLinker04 phase
SHLINK04_EXE=Optlnk.exe
SHLINK04_DEP="$(OSDIR)\FX\lib\fx9860G_library.lib"
SHLINK04_DEP2="$(OSDIR)\FX\lib\setup.obj"

#######################
# Files to build
FILE0=Ald
FILESRC0="$(APPDIR)\$(FILE0).c"
FILEOBJ0="$(OUTDIR)\$(FILE0).obj"
FILE1=MonochromeLib
FILESRC1="$(APPDIR)\$(FILE1).c"
FILEOBJ1="$(OUTDIR)\$(FILE1).obj"
RFILE=FXADDINror
USERALLOBJ=$(FILEOBJ0) $(FILEOBJ1)

#######################
# nmake "all" statement

ALL: SH_ENV \
$(USERALLOBJ) \
$(OUTDIR)\$(RFILE).bin \

####################
# Description blocks

!MESSAGE %3#C$z`&'0?
!MESSAGE
!MESSAGE Executing Hitachi SH C/C++ Compiler/Assembler phase
!MESSAGE

SH_ENV :
set SHC_INC=$(TCDIR)\include
set PATH=$(TCDIR)\bin
set SHC_LIB=$(TCDIR)\bin
set SHC_TMP=$(OUTDIR)

$(FILEOBJ0) : $(FILESRC0) $(SHCC02_DEP)
"$(SH_EXEDIR)\$(SHCC02_EXE)" -subcommand=<<
-cpu=sh3
-include="$(OSDIR)\FX\include","$(APPDIR)"
-objectfile=$(FILEOBJ0)
-show=source
-listfile="$(OUTDIR)\$(FILE0).lst"
-size
-noinline
-chgincpath
-errorpath
$(FILESRC0)
-lang=c
-nologo
-debug
<<

$(FILEOBJ1) : $(FILESRC1) $(SHCC02_DEP)
"$(SH_EXEDIR)\$(SHCC02_EXE)" -subcommand=<<
-cpu=sh3
-include="$(OSDIR)\FX\include","$(APPDIR)"
-objectfile=$(FILEOBJ1)
-show=source
-listfile="$(OUTDIR)\$(FILE1).lst"
-size
-noinline
-chgincpath
-errorpath
$(FILESRC1)
-lang=c
-nologo
-debug
<<

!MESSAGE
!MESSAGE Executing Hitachi OptLinker04 phase
!MESSAGE

"$(OUTDIR)\$(RFILE).bin" : $(USERALLOBJ) $(SHLINK04_DEP2) $(SHLINK04_DEP)
"$(SH_EXEDIR)\$(SHLINK04_EXE)" -subcommand=<<
noprelink
sdebug
rom D=R
nomessage
list "$(OUTDIR)\$(RFILE).map"
show symbol
nooptimize
start P_TOP,P,C,D,C$VTBL,C$INIT/0300200,B_BR_Size,B,R/08100000
fsymbol P
nologo
input $(USERALLOBJ)
input $(SHLINK04_DEP2)
library $(SHLINK04_DEP)
output "$(OUTDIR)\$(RFILE).abs"
-nomessage=1100
end
input "$(OUTDIR)\$(RFILE).abs"
form binary
output "$(OUTDIR)\$(RFILE).bin"
exit
<<


+ 203
- 0
Debug/Ald.lst View File

@@ -0,0 +1,203 @@
SH SERIES C/C++ Compiler (Ver. 6.0C) 29-Apr-2016 12:29:39 PAGE 1

************ OBJECT LISTING ************

FILE NAME: F:\AldTest\Ald.c

SCT OFFSET CODE C LABEL INSTRUCTION OPERAND COMMENT

Ald.c 1
Ald.c 2 #include "fxlib.h"
Ald.c 3 #include "AldeBasiClib.h"
Ald.c 4
Ald.c 5 int AddIn_main(int isAppli, unsigned short OptionNum)
P 00000000 _AddIn_main: ; function: AddIn_main
; frame size=4
00000000 4F22 STS.L PR,@-R15
Ald.c 6 {
Ald.c 7 Cls;
00000002 D308 MOV.L L358+2,R3 ; _ML_clear_screen
00000004 430B JSR @R3
00000006 0009 NOP
Ald.c 8 Locate(2,3,Test);
00000008 D607 MOV.L L358+6,R6 ; L350
0000000A E51B MOV #27,R5
0000000C D207 MOV.L L358+10,R2 ; _PrintXY
0000000E E700 MOV #0,R7
00000010 420B JSR @R2
00000012 E40C MOV #12,R4
Ald.c 9 RclVRAM;
00000014 D306 MOV.L L358+14,R3 ; _ML_display_vram
00000016 430B JSR @R3
00000018 0009 NOP
Ald.c 10 Sleep(5000);
0000001A 9402 MOV.W L358,R4 ; H'1388
0000001C D205 MOV.L L358+18,R2 ; _Sleep
0000001E 422B JMP @R2
00000020 4F26 LDS.L @R15+,PR
00000022 L358:
00000022 1388 .DATA.W H'1388
00000024 <00000000> .DATA.L _ML_clear_screen
00000028 <00000000> .DATA.L L350
0000002C <00000000> .DATA.L _PrintXY
00000030 <00000000> .DATA.L _ML_display_vram
00000034 <00000000> .DATA.L _Sleep
Ald.c 11 }
Ald.c 12
Ald.c 13 #pragma section _BR_Size
Ald.c 14 unsigned long BR_Size;
Ald.c 15 #pragma section
Ald.c 16
Ald.c 17
Ald.c 18 #pragma section _TOP
Ald.c 19
Ald.c 20 int InitializeSystem(int isAppli, unsigned short OptionNum)
P_T 00000000 _InitializeSystem: ; function: InitializeSystem
; frame size=0
Ald.c 21 {
Ald.c 22 return INIT_ADDIN_APPLICATION(isAppli, OptionNum);
00000000 D301 MOV.L L359+2,R3 ; _INIT_ADDIN_APPLICATION
00000002 432B JMP @R3
00000004 0009 NOP
00000006 L359:




SH SERIES C/C++ Compiler (Ver. 6.0C) 29-Apr-2016 12:29:39 PAGE 2


SCT OFFSET CODE C LABEL INSTRUCTION OPERAND COMMENT

00000006 0000 .DATA.W 0
00000008 <00000000> .DATA.L _INIT_ADDIN_APPLICATION
Ald.c 23 }
Ald.c 24
Ald.c 25 #pragma section
Ald.c 26
C 00000000 L350:
00000000 54657374 .SDATA "Test"
00000004 00 .DATA.B H'00
B_B 00000000 _BR_Size: ; static: BR_Size
00000000 00000004 .RES.L 1


















































SH SERIES C/C++ Compiler (Ver. 6.0C) 29-Apr-2016 12:29:39 PAGE 1


******** STATISTICS INFORMATION ********


********** ERROR INFORMATION ***********

NUMBER OF ERRORS: 0
NUMBER OF WARNINGS: 1




******* SOURCE LINE INFORMATION ********

COMPILED SOURCE LINE: 26



******* SECTION SIZE INFORMATION *******

PROGRAM SECTION (P): 00000038 Byte(s)
PROGRAM SECTION (P_BR_Size): 00000000 Byte(s)
PROGRAM SECTION (P_TOP): 0000000C Byte(s)
CONSTANT SECTION (C): 00000005 Byte(s)
CONSTANT SECTION (C_BR_Size): 00000000 Byte(s)
CONSTANT SECTION (C_TOP): 00000000 Byte(s)
DATA SECTION (D): 00000000 Byte(s)
DATA SECTION (D_BR_Size): 00000000 Byte(s)
DATA SECTION (D_TOP): 00000000 Byte(s)
BSS SECTION (B): 00000000 Byte(s)
BSS SECTION (B_BR_Size): 00000004 Byte(s)
BSS SECTION (B_TOP): 00000000 Byte(s)

TOTAL PROGRAM SIZE: 0000004D Byte(s)



********** LABEL INFORMATION ***********

NUMBER OF EXTERNAL REFERENCE SYMBOLS: 5
NUMBER OF EXTERNAL DEFINITION SYMBOLS: 3
NUMBER OF INTERNAL/EXTERNAL SYMBOLS: 11






















*** COMMAND PARAMETER ***


-subcommand=C:\Users\gabillef\AppData\Local\Temp\hmkCDF9.tmp


BIN
Debug/Ald.obj View File


BIN
Debug/FXADDINror.abs View File


BIN
Debug/FXADDINror.bin View File


BIN
Debug/FXADDINror.dbg View File


+ 223
- 0
Debug/FXADDINror.fsy View File

@@ -0,0 +1,223 @@
;HITACHI OPTIMIZING LINKAGE EDITOR GENERATED FILE 2016.04.29
;fsymbol = P

;SECTION NAME = P
.export _AddIn_main
_AddIn_main: .equ h'0030020c
.export _ML_vram_adress
_ML_vram_adress: .equ h'00300244
.export _ML_clear_vram
_ML_clear_vram: .equ h'00300260
.export _ML_clear_screen
_ML_clear_screen: .equ h'003002bc
.export _ML_display_vram
_ML_display_vram: .equ h'003002f6
.export _ML_set_contrast
_ML_set_contrast: .equ h'00300340
.export _ML_get_contrast
_ML_get_contrast: .equ h'0030034c
.export _ML_pixel
_ML_pixel: .equ h'00300368
.export _ML_point
_ML_point: .equ h'003003f4
.export _ML_pixel_test
_ML_pixel_test: .equ h'00300462
.export _ML_line
_ML_line: .equ h'003004c6
.export _ML_horizontal_line
_ML_horizontal_line: .equ h'0030059c
.export _ML_vertical_line
_ML_vertical_line: .equ h'00300844
.export _ML_rectangle
_ML_rectangle: .equ h'00300978
.export _ML_polygon
_ML_polygon: .equ h'00300a74
.export _ML_filled_polygon
_ML_filled_polygon: .equ h'00300b88
.export _ML_circle
_ML_circle: .equ h'00300de8
.export _ML_filled_circle
_ML_filled_circle: .equ h'00300eda
.export _ML_ellipse
_ML_ellipse: .equ h'00300f8c
.export _ML_ellipse_in_rect
_ML_ellipse_in_rect: .equ h'0030123e
.export _ML_filled_ellipse
_ML_filled_ellipse: .equ h'00301296
.export _ML_filled_ellipse_in_rect
_ML_filled_ellipse_in_rect: .equ h'00301552
.export _ML_horizontal_scroll
_ML_horizontal_scroll: .equ h'003015aa
.export _ML_vertical_scroll
_ML_vertical_scroll: .equ h'003016e2
.export _ML_bmp_or
_ML_bmp_or: .equ h'00301774
.export _ML_bmp_and
_ML_bmp_and: .equ h'003018da
.export _ML_bmp_xor
_ML_bmp_xor: .equ h'00301a50
.export _ML_bmp_or_cl
_ML_bmp_or_cl: .equ h'00301bb4
.export _ML_bmp_and_cl
_ML_bmp_and_cl: .equ h'00301e02
.export _ML_bmp_xor_cl
_ML_bmp_xor_cl: .equ h'0030205c
.export _ML_bmp_8_or
_ML_bmp_8_or: .equ h'003022aa
.export _ML_bmp_8_and
_ML_bmp_8_and: .equ h'00302366
.export _ML_bmp_8_xor
_ML_bmp_8_xor: .equ h'0030242c
.export _ML_bmp_8_or_cl
_ML_bmp_8_or_cl: .equ h'003024ea
.export _ML_bmp_8_and_cl
_ML_bmp_8_and_cl: .equ h'003025d8
.export _ML_bmp_8_xor_cl
_ML_bmp_8_xor_cl: .equ h'003026c6
.export _ML_bmp_16_or
_ML_bmp_16_or: .equ h'003027b4
.export _ML_bmp_16_and
_ML_bmp_16_and: .equ h'0030287e
.export _ML_bmp_16_xor
_ML_bmp_16_xor: .equ h'0030294c
.export _ML_bmp_16_or_cl
_ML_bmp_16_or_cl: .equ h'00302a1c
.export _ML_bmp_16_and_cl
_ML_bmp_16_and_cl: .equ h'00302b2e
.export _ML_bmp_16_xor_cl
_ML_bmp_16_xor_cl: .equ h'00302c48
.export _ML_bmp_or_zoom
_ML_bmp_or_zoom: .equ h'00302d5a
.export _ML_bmp_and_zoom
_ML_bmp_and_zoom: .equ h'00302f04
.export _ML_bmp_xor_zoom
_ML_bmp_xor_zoom: .equ h'003030b0
.export _ML_bmp_or_rotate
_ML_bmp_or_rotate: .equ h'0030325c
.export _ML_bmp_and_rotate
_ML_bmp_and_rotate: .equ h'00303494
.export _ML_bmp_xor_rotate
_ML_bmp_xor_rotate: .equ h'003036ce
.export ___LINK_PROTECT
___LINK_PROTECT: .equ h'00303908
.export _SetQuitHandler
_SetQuitHandler: .equ h'0030390c
.export _OnAppCloseDefault
_OnAppCloseDefault: .equ h'00303912
.export __INITSCT_ADDIN
__INITSCT_ADDIN: .equ h'00303966
.export _INIT_ADDIN_APPLICATION
_INIT_ADDIN_APPLICATION: .equ h'003039ae
.export __addd
__addd: .equ h'00303af4
.export __subdr
__subdr: .equ h'00303a3c
.export __subd
__subd: .equ h'00303a24
.export __adds
__adds: .equ h'00303dba
.export __subs
__subs: .equ h'00303db4
.export __divdr
__divdr: .equ h'003040ac
.export __divd
__divd: .equ h'003040c0
.export __dtoi
__dtoi: .equ h'00304224
.export __dtou
__dtou: .equ h'00304224
.export __dtos
__dtos: .equ h'003042b0
.export __gtd
__gtd: .equ h'0030438c
.export __itod
__itod: .equ h'00304434
.export __itos
__itos: .equ h'00304488
.export __lts
__lts: .equ h'003044e0
.export __muld
__muld: .equ h'003045fc
.export __muls
__muls: .equ h'0030476c
.export __negd
__negd: .equ h'003048ac
.export __stou
__stou: .equ h'003048cc
.export __stoi
__stoi: .equ h'003048cc
.export __divls
__divls: .equ h'00304924
.export __modls
__modls: .equ h'003049d8
.export _abs
_abs: .equ h'00304aa0
.export _cosf
_cosf: .equ h'00304ab0
.export _sinf
_sinf: .equ h'00304b20
.export _Bdel_cychdr
_Bdel_cychdr: .equ h'00304b90
.export _BfileFLS_CloseFile
_BfileFLS_CloseFile: .equ h'00304ba0
.export _Bkey_Set_RepeatTime_Default
_Bkey_Set_RepeatTime_Default: .equ h'00304bb0
.export _CallbackAtQuitMainFunction
_CallbackAtQuitMainFunction: .equ h'00304bc0
.export _flsFindClose
_flsFindClose: .equ h'00304bd0
.export _free
_free: .equ h'00304be0
.export _GLibAddinAplExecutionCheck
_GLibAddinAplExecutionCheck: .equ h'00304bf0
.export _Hmem_SetMMU
_Hmem_SetMMU: .equ h'00304c00
.export _malloc
_malloc: .equ h'00304c10
.export _PrintXY
_PrintXY: .equ h'00304c20
.export _GetSDKLibraryVersion
_GetSDKLibraryVersion: .equ h'00304c30
.export _SetTimer
_SetTimer: .equ h'00304c36
.export _KillTimer
_KillTimer: .equ h'00304c8a
.export _Sleep
_Sleep: .equ h'00304cce
.export __istos
__istos: .equ h'00304d30
.export __stois
__stois: .equ h'00304dd4
.export __in_coss
__in_coss: .equ h'00304e40
.export __in_sins
__in_sins: .equ h'00304fa0
.export _Bcre_cychdr
_Bcre_cychdr: .equ h'00305118
.export _BSrl_DummyWAIT
_BSrl_DummyWAIT: .equ h'00305128
.export _Bsta_cychdr
_Bsta_cychdr: .equ h'00305138
.export _Bstp_cychdr
_Bstp_cychdr: .equ h'00305148
.export __in_adds
__in_adds: .equ h'00305164
.export __in_subs
__in_subs: .equ h'00305158
.export __in_fmods
__in_fmods: .equ h'003053c4
.export __istypes
__istypes: .equ h'0030544c
.export __quick_odd_mvn
__quick_odd_mvn: .equ h'00305490
.export __quick_evn_mvn
__quick_evn_mvn: .equ h'00305484
.export __app_coss
__app_coss: .equ h'00305528
.export __app_sins
__app_sins: .equ h'00305578
.export __in_muls
__in_muls: .equ h'003055e4
.export __polinos
__polinos: .equ h'00305694
.end

+ 1406
- 0
Debug/FXADDINror.map
File diff suppressed because it is too large
View File


+ 10631
- 0
Debug/MonochromeLib.lst
File diff suppressed because it is too large
View File


BIN
Debug/MonochromeLib.obj View File


+ 22
- 0
FXSH_Build.bat View File

@@ -0,0 +1,22 @@
@echo off
rem Do not edit! This batch file is created by CASIO fx-9860G SDK.


if exist ALD.G1A del ALD.G1A

cd debug
if exist FXADDINror.bin del FXADDINror.bin
"F:\Casio\fx-9860G SDK\OS\SH\Bin\Hmake.exe" Addin.mak
cd ..
if not exist debug\FXADDINror.bin goto error

"F:\Casio\fx-9860G SDK\Tools\MakeAddinHeader363.exe" "F:\AldTest"
if not exist ALD.G1A goto error
echo Build has completed.
goto end

:error
echo Build was not successful.

:end


BIN
INIT/CasioRAM.mem View File


BIN
INIT/CasioRAMCPU.mem View File


BIN
MainIcon.bmp View File


+ 1559
- 0
MonochromeLib.c
File diff suppressed because it is too large
View File


+ 167
- 0
MonochromeLib.h View File

@@ -0,0 +1,167 @@
/*************************************************************/
/** MonochromeLib - monochrome graphic library for fx-9860G **/
/** MonochromeLib is free software **/
/** **/
/** @author Pierre "PierrotLL" Le Gall **/
/** @contact legallpierre89@gmail.com **/
/** **/
/** @file MonochromeLib.h **/
/** Include header for MonochromeLib **/
/** **/
/** @date 11-22-2011 **/
/*************************************************************/

#ifndef MONOCHROMELIB
#define MONOCHROMELIB

/****************************************************/
/** uncomment #define of functions you want to use **/
/****************************************************/

#define ML_ALL //Auto define all functions

// #define ML_CLEAR_VRAM
// #define ML_CLEAR_SCREEN
// #define ML_DISPLAY_VRAM

// #define ML_SET_CONTRAST
// #define ML_GET_CONTRAST

// #define ML_PIXEL
// #define ML_POINT
// #define ML_PIXEL_TEST

// #define ML_LINE
// #define ML_HORIZONTAL_LINE
// #define ML_VERTICAL_LINE

// #define ML_RECTANGLE

// #define ML_POLYGON
// #define ML_FILLED_POLYGON

// #define ML_CIRCLE
// #define ML_FILLED_CIRCLE

// #define ML_ELLIPSE
// #define ML_ELLIPSE_IN_RECT
// #define ML_FILLED_ELLIPSE
// #define ML_FILLED_ELLIPSE_IN_RECT

// #define ML_HORIZONTAL_SCROLL
// #define ML_VERTICAL_SCROLL

// #define ML_BMP_OR
// #define ML_BMP_AND
// #define ML_BMP_XOR
// #define ML_BMP_OR_CL
// #define ML_BMP_AND_CL
// #define ML_BMP_XOR_CL

// #define ML_BMP_8_OR
// #define ML_BMP_8_AND
// #define ML_BMP_8_XOR
// #define ML_BMP_8_OR_CL
// #define ML_BMP_8_AND_CL
// #define ML_BMP_8_XOR_CL

// #define ML_BMP_16_OR
// #define ML_BMP_16_AND
// #define ML_BMP_16_XOR
// #define ML_BMP_16_OR_CL
// #define ML_BMP_16_AND_CL
// #define ML_BMP_16_XOR_CL

// #define ML_BMP_OR_ZOOM
// #define ML_BMP_AND_ZOOM
// #define ML_BMP_XOR_ZOOM

// #define ML_BMP_OR_ROTATE
// #define ML_BMP_AND_ROTATE
// #define ML_BMP_XOR_ROTATE


/**************************/
/** Functions prototypes **/
/**************************/

#ifdef __cplusplus
extern "C" {
#endif

#define ML_SCREEN_WIDTH 128
#define ML_SCREEN_HEIGHT 64

#define ML_CONTRAST_MIN 130
#define ML_CONTRAST_NORMAL 168
#define ML_CONTRAST_MAX 190
typedef enum {ML_TRANSPARENT=-1, ML_WHITE, ML_BLACK, ML_XOR, ML_CHECKER} ML_Color;

char* ML_vram_adress();

void ML_clear_vram();
void ML_clear_screen();
void ML_display_vram();

void ML_set_contrast(unsigned char contrast);
unsigned char ML_get_contrast();

void ML_pixel(int x, int y, ML_Color color);
void ML_point(int x, int y, int width, ML_Color color);
ML_Color ML_pixel_test(int x, int y);

void ML_line(int x1, int y1, int x2, int y2, ML_Color color);
void ML_horizontal_line(int y, int x1, int x2, ML_Color color);
void ML_vertical_line(int x, int y1, int y2, ML_Color color);

void ML_rectangle(int x1, int y1, int x2, int y2, int border_width, ML_Color border_color, ML_Color fill_color);

void ML_polygon(const int *x, const int *y, int nb_vertices, ML_Color color);
void ML_filled_polygon(const int *x, const int *y, int nb_vertices, ML_Color color);

void ML_circle(int x, int y, int radius, ML_Color color);
void ML_filled_circle(int x, int y, int radius, ML_Color color);

void ML_ellipse(int x, int y, int radius1, int radius2, ML_Color color);
void ML_ellipse_in_rect(int x1, int y1, int x2, int y2, ML_Color color);
void ML_filled_ellipse(int x, int y, int radius1, int radius2, ML_Color color);
void ML_filled_ellipse_in_rect(int x, int y, int radius1, int radius2, ML_Color color);

void ML_horizontal_scroll(int scroll);
void ML_vertical_scroll(int scroll);

void ML_bmp_or(const unsigned char *bmp, int x, int y, int width, int height);
void ML_bmp_and(const unsigned char *bmp, int x, int y, int width, int height);
void ML_bmp_xor(const unsigned char *bmp, int x, int y, int width, int height);
void ML_bmp_or_cl(const unsigned char *bmp, int x, int y, int width, int height);
void ML_bmp_and_cl(const unsigned char *bmp, int x, int y, int width, int height);
void ML_bmp_xor_cl(const unsigned char *bmp, int x, int y, int width, int height);

void ML_bmp_8_or(const unsigned char *bmp, int x, int y);
void ML_bmp_8_and(const unsigned char *bmp, int x, int y);
void ML_bmp_8_xor(const unsigned char *bmp, int x, int y);
void ML_bmp_8_or_cl(const unsigned char *bmp, int x, int y);
void ML_bmp_8_and_cl(const unsigned char *bmp, int x, int y);
void ML_bmp_8_xor_cl(const unsigned char *bmp, int x, int y);

void ML_bmp_16_or(const unsigned short *bmp, int x, int y);
void ML_bmp_16_and(const unsigned short *bmp, int x, int y);
void ML_bmp_16_xor(const unsigned short *bmp, int x, int y);
void ML_bmp_16_or_cl(const unsigned short *bmp, int x, int y);
void ML_bmp_16_and_cl(const unsigned short *bmp, int x, int y);
void ML_bmp_16_xor_cl(const unsigned short *bmp, int x, int y);

void ML_bmp_or_zoom(const unsigned char *bmp, int x, int y, int width, int height, float zoom_w, float zoom_h);
void ML_bmp_and_zoom(const unsigned char *bmp, int x, int y, int width, int height, float zoom_w, float zoom_h);
void ML_bmp_xor_zoom(const unsigned char *bmp, int x, int y, int width, int height, float zoom_w, float zoom_h);

void ML_bmp_or_rotate(const unsigned char *bmp, int x, int y, int width, int height, int angle);
void ML_bmp_and_rotate(const unsigned char *bmp, int x, int y, int width, int height, int angle);
void ML_bmp_xor_rotate(const unsigned char *bmp, int x, int y, int width, int height, int angle);

#ifdef __cplusplus
}
#endif


#endif //MONOCHROMELIB

BIN
eActivityIcon.bmp View File


Loading…
Cancel
Save