From 09c40f135cb3f69599457a5b278d29bcb38fa6ef Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 15 Jan 2018 12:07:13 +0100 Subject: checkpoint --- projects/11/systemsub.txt | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 projects/11/systemsub.txt (limited to 'projects/11/systemsub.txt') diff --git a/projects/11/systemsub.txt b/projects/11/systemsub.txt new file mode 100644 index 0000000..16c9552 --- /dev/null +++ b/projects/11/systemsub.txt @@ -0,0 +1,58 @@ +class Math{ +function int multiply(int x, int y){} +function int divide(int x, int y){} +function int min(int x, int y){} +function int max(int x, int y){} +function int sqrt(int x){} +} +class String{ +constructor String new(int maxLength){} +method int dispose(){} +method int length(){} +method char charAt(int j){} +method void setCharAt(int j, char c){} +method String appendChar(char c){} +method void eraseLastChar(){} +method int intValue(){} +method void setInt(int val){} +function char backSpace(){} +function char doubleQuote(){} +function char newLine(){} +} +class Array{ +function Array new(int size){} +method void dispose(){} +} +class Output{ +function void moveCursor(int i, int j){} +function void printChar(char c){} +function void printString(String s){} +function void printInt(int i){} +function void println(){} +function void backSpace(){} +} +class Screen{ +function void clearScreen(){} +function void setColor(boolean b){} +function void drawPixel(int x, int y){} +function void drawLine(int x1, int y1, int x2, int y2){} +function void drawRectangle(int x1, int y1, int x2, int y2){} +function void drawCircle(int x, int y, int r){} +} +class Keyboard{ +function char keyPressed(){} +function char readChar(){} +function String readLine(String message){} +function int readInt(String message){} +} +class Memory{ +function int peek(int address){} +function void poke(int address, int value){} +function Array alloc(int size){} +function void deAlloc(Array o){} +} +class Sys{ +function void halt(){} +function void error(int errorCode){} +function void wait(int duration){} +} -- cgit v1.2.3