Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from Host32/master
Trocar tipo do array de instruções
- Loading branch information
Showing
35 changed files
with
266 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class ANDLW extends Instrucao{ | ||
private String match = "^1110[0|1]{8}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
ANDLW inst = new ANDLW(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class ANDLW extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
ANDLW inst = new ANDLW(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class BCF extends Instrucao{ | ||
private String match = "^0100[0|1]{3}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
BCF inst = new BCF(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class BCF extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
BCF inst = new BCF(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class BSF extends Instrucao{ | ||
private String match = "^0101[0|1]{3}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
BSF inst = new BSF(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class BSF extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
BSF inst = new BSF(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class BTFSC extends Instrucao{ | ||
private String match = "^0110[0|1]{3}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
BTFSC inst = new BTFSC(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class BTFSC extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
BTFSC inst = new BTFSC(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class BTFSS extends Instrucao{ | ||
private String match = "^0111[0|1]{3}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
BTFSS inst = new BTFSS(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class BTFSS extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
BTFSS inst = new BTFSS(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class CALL extends Instrucao{ | ||
private String match = "^1001[0|1]{8}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
CALL inst = new CALL(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class CALL extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
CALL inst = new CALL(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class CLRWDT extends Instrucao{ | ||
private String match = "^000000000100$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
CLRWDT inst = new CLRWDT(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class CLRWDT extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
CLRWDT inst = new CLRWDT(); | ||
// ** Vide Pagina 54 do manual da PIC ** | ||
} | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class COMF extends Instrucao{ | ||
private String match = "^001001[0|1]{1}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
COMF inst = new COMF(); | ||
// ** Vide Pagina 53 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
public class COMF extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
COMF inst = new COMF(); | ||
// ** Vide Pagina 53 do manual da PIC ** | ||
} | ||
|
||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class DECF extends Instrucao{ | ||
private String match = "^000011[0|1]{1}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
DECF inst = new DECF(); | ||
// ** Vide Pagina 53 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
} | ||
import unipic.Instrucao; | ||
|
||
public class DECF extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
DECF inst = new DECF(); | ||
// ** Vide Pagina 53 do manual da PIC ** | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package instrucoes; | ||
import unipic.Instrucao; | ||
|
||
public class DECFSZ extends Instrucao{ | ||
private String match = "^001011[0|1]{1}[0|1]{5}$"; | ||
|
||
public boolean matcher(String comando){ | ||
return comando.matches(match); | ||
} | ||
|
||
@Override | ||
public Instrucao getInstrucao(String comando){ | ||
DECFSZ inst = new DECFSZ(); | ||
// ** Vide Pagina 53 do manual da PIC ** | ||
|
||
return inst; | ||
} | ||
|
||
} | ||
public class DECFSZ extends Instrucao{ | ||
@Override | ||
public void setup(String comando){ | ||
DECFSZ inst = new DECFSZ(); | ||
// ** Vide Pagina 53 do manual da PIC ** | ||
} | ||
|
||
} |
Oops, something went wrong.