Created
January 14, 2019 18:53
-
-
Save vnkdj5/21305b802ac8f7579e6b3d87e71a212f to your computer and use it in GitHub Desktop.
TableRow class for PASS II assmbler
This file contains hidden or 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
| public class TableRow { | |
| String symbol; | |
| int address; | |
| int index; | |
| public TableRow(String symbol, int address) { | |
| super(); | |
| this.symbol = symbol; | |
| this.address = address; | |
| } | |
| public TableRow(String symbol, int address,int index) { | |
| super(); | |
| this.symbol = symbol; | |
| this.address = address; | |
| this.index=index; | |
| } | |
| public int getIndex() { | |
| return index; | |
| } | |
| public void setIndex(int index) { | |
| this.index = index; | |
| } | |
| public String getSymbol() { | |
| return symbol; | |
| } | |
| public void setSymbol(String symbol) { | |
| this.symbol = symbol; | |
| } | |
| public int getAddress() { | |
| return address; | |
| } | |
| public void setAddress(int address) { | |
| this.address = address; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment