Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

Commit

Permalink
OpenPython v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EcmaXp committed Oct 18, 2018
1 parent cf59f93 commit 75ec5e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/kr/pe/ecmaxp/openpython/OpenPython.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object OpenPython {

Items.registerEEPROM(
"EEPROM (OpenPython BIOS)",
OpenPythonFirmware.DEBUG.loadEEPROM(),
OpenPythonFirmware.v1_0_0.loadEEPROM(),
byteArrayOf(),
false
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import kr.pe.ecmaxp.thumbsf.CPU
import java.net.URL
import java.util.*

class OpenPythonFirmware(val name: String = "debug") {
class OpenPythonFirmware(val name: String) {
val protocol = 1
private val path: String = "/assets/${OpenPython.MODID}/firmwares/$name"

companion object {
val DEBUG = OpenPythonFirmware()
val v1_0_0 = OpenPythonFirmware("v1.0.0")
}

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ object OpenPythonBenchmark {
@JvmStatic
fun main(args: Array<String>) {
val cpu = CPU()
val firmware = OpenPythonFirmware.DEBUG
val firmware = OpenPythonFirmware.v1_0_0
cpu.memory.apply {
flash(FLASH.address, FLASH.size, firmware.loadFirmware())
map(SRAM.address, SRAM.size, MemoryFlag.RW) // ram
Expand Down

0 comments on commit 75ec5e6

Please sign in to comment.