Lua Computer: collection of minor updates, none notable (read romapidoc)

Former-commit-id: 80e3f0d13c2dc5bcff0843e509f416e9314cd52e
Former-commit-id: e7e35bfd23d70db84f568f0c5388f3a1d89222bc
This commit is contained in:
Song Minjae
2016-09-26 12:15:45 +09:00
parent 29db14d184
commit 75d73f7d18
76 changed files with 2326 additions and 781 deletions

View File

@@ -14,14 +14,14 @@ object ComputerPartsCodex {
init {
// in kilobytes
rams.put(4864, 16.MiB())
rams.put(4865, 24.MiB())
rams.put(4866, 32.MiB())
rams.put(4867, 64.MiB())
rams.put(4868, 96.MiB())
rams.put(4869, 128.MiB())
rams.put(4870, 160.MiB())
rams.put(4871, 256.MiB())
rams.put(4864, 128.KiB())
rams.put(4865, 192.KiB())
rams.put(4866, 256.KiB())
rams.put(4867, 384.KiB())
rams.put(4868, 512.KiB())
rams.put(4869, 768.KiB())
rams.put(4870, 1024.KiB())
rams.put(4871, 2048.KiB())
processors.put(4872, 1000)
processors.put(4873, 2000)
@@ -51,6 +51,6 @@ object ComputerPartsCodex {
private fun Int.MB() = this * 1000000 // 1 MB == 1 000 000 bytes, bitches!
private fun Int.kB() = this * 1000
private fun Int.KiB() = this.shr(10)
private fun Int.MiB() = this.shr(20)
private fun Int.KiB() = this.shl(10)
private fun Int.MiB() = this.shl(20)
}