Fix bug where hex2num and num2hex don't actually return anything

This commit is contained in:
n loewen 2023-07-26 13:52:46 +01:00
parent 10ada984e6
commit 62fd07fcaa
3 changed files with 24 additions and 2 deletions

17
sketches/package-lock.json generated Normal file
View File

@ -0,0 +1,17 @@
{
"name": "sketches",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"dependencies": {
"papaparse": "^5.4.1"
}
},
"node_modules/papaparse": {
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.4.1.tgz",
"integrity": "sha512-HipMsgJkZu8br23pW15uvo6sib6wne/4woLZPlFf3rpDyMe9ywEXUsuD7+6K9PRkJlVT51j/sCOYDKGGS3ZJrw=="
}
}
}

5
sketches/package.json Normal file
View File

@ -0,0 +1,5 @@
{
"dependencies": {
"papaparse": "^5.4.1"
}
}

View File

@ -201,8 +201,8 @@ function logCPUState() {
// FUNCTIONS FOR DISPLAYING DATA
function num2hex(num) { num.toString(16) };
function hex2num(hex) { parseInt(hex, 16) };
function num2hex(num) { return num.toString(16) };
function hex2num(hex) { return parseInt(hex, 16) };
logTableTitled = (memory, tableTitle) => {
console.log();