Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
8e35d77
Set theme jekyll-theme-cayman
uhziel Jan 5, 2020
ed87606
Update README.md
uhziel Jan 5, 2020
ada9024
Update README.md
uhziel Jan 5, 2020
ed64301
Add files via upload
leoncoolmoon Jul 10, 2024
936243b
Add files via upload
leoncoolmoon Jul 10, 2024
9812421
Update README.md
leoncoolmoon Jul 10, 2024
6bdfc25
Update README.md
leoncoolmoon Jul 10, 2024
3a788b3
Delete rom directory
leoncoolmoon Jul 10, 2024
0f1b025
fix: initialize simulator RTC with current system time
google-labs-jules[bot] May 15, 2026
05fdcbe
fix: simulator RTC initialization and flash emulation errors
google-labs-jules[bot] May 15, 2026
b5191ca
Merge pull request #1 from leoncoolmoon/fix-rtc-initialization-333010…
leoncoolmoon May 15, 2026
d0d92a0
Update index.html
leoncoolmoon May 15, 2026
baaefcc
fix flash
leoncoolmoon May 16, 2026
a3b7e65
update index
leoncoolmoon May 16, 2026
0597f2d
Refactor key input handling to use setKey method
leoncoolmoon May 17, 2026
ba73fa2
fix 开关
leoncoolmoon May 17, 2026
1f87eee
Update F12 key mapping in keyinput.js
leoncoolmoon May 17, 2026
c9efc45
简单的python服务器,方便本地运行
leoncoolmoon May 17, 2026
38df417
Update README with UI changes and new features
leoncoolmoon May 17, 2026
7eccee9
Refactor README content and improve formatting
leoncoolmoon May 17, 2026
fc82108
Refactor index.html for UI updates and functionality
leoncoolmoon May 17, 2026
5b2df62
feat: optimize UI layout and align LCD with physical ruler
google-labs-jules[bot] May 18, 2026
28e9c6b
feat: optimize emulator UI with high-fidelity alignment and responsiv…
google-labs-jules[bot] May 18, 2026
50a6984
Optimize emulator UI with layered rendering and precise alignment
google-labs-jules[bot] May 18, 2026
e51c35c
Optimize UI layout with precise LCD alignment and ruler indicators
google-labs-jules[bot] May 18, 2026
ad7d2fb
Merge pull request #2 from leoncoolmoon/ui-optimization-alignment-559…
leoncoolmoon May 18, 2026
e980ce1
face_lift
leoncoolmoon May 18, 2026
35e4241
Update index.html
leoncoolmoon May 18, 2026
41a6f94
Add files via upload
leoncoolmoon May 18, 2026
d99a57c
Optimize fullscreen logic and remap backspace to F2
google-labs-jules[bot] May 18, 2026
1f409ed
Optimize fullscreen logic, remap backspace to F2, and fix Shift key
google-labs-jules[bot] May 18, 2026
f420efb
Merge pull request #3 from leoncoolmoon/fullscreen-optimization-and-k…
leoncoolmoon May 18, 2026
14413bc
feat: convert to PWA and remove start.py
google-labs-jules[bot] May 18, 2026
b95f7e9
Merge pull request #4 from leoncoolmoon/feat/pwa-support-and-cleanup-…
leoncoolmoon May 19, 2026
c8e08cd
Update latest version details in README.md
leoncoolmoon May 19, 2026
1f1fb4b
update 键盘快捷键说明
leoncoolmoon May 19, 2026
29ecfcc
fix bugs add icon
leoncoolmoon May 19, 2026
b408d87
add ico
leoncoolmoon May 19, 2026
c055962
fix pwa bug
leoncoolmoon May 19, 2026
01afef5
看看是否修复了开关
leoncoolmoon May 20, 2026
668360a
check if fixed power
leoncoolmoon May 20, 2026
924a74c
Implement drag-and-drop for .fls file loading
leoncoolmoon May 20, 2026
63f4890
Log dropped file name to console
leoncoolmoon May 20, 2026
780ec47
Update drag-and-drop event listeners for file uploads
leoncoolmoon May 20, 2026
49e222c
Refactor syncCalendar to restore year and month correctly
leoncoolmoon May 21, 2026
98acaaf
Add current date and time synchronization in Wqx
leoncoolmoon May 21, 2026
ab187f5
Refactor syncCalendar to update date and month handling
leoncoolmoon May 21, 2026
dfe4399
feat: add 'Clear App Cache' button to settings drawer
google-labs-jules[bot] May 21, 2026
6e00b74
Add 'Clear App Cache' button and implement i18n system
google-labs-jules[bot] May 21, 2026
818ca93
Merge pull request #6 from leoncoolmoon/feature/clear-app-cache-butto…
leoncoolmoon May 21, 2026
7edb8da
updated function
leoncoolmoon May 21, 2026
0bda86b
feat: improve PWA sync and refine emulator boot logic
google-labs-jules[bot] May 21, 2026
3bb28ec
Improve PWA version management and refactor emulator boot logic
google-labs-jules[bot] May 21, 2026
13f4f74
Refine PWA management, boot logic, and implement auto-save
google-labs-jules[bot] May 21, 2026
c8dc0b2
Merge pull request #7 from leoncoolmoon/fix-pwa-and-boot-logic-865932…
leoncoolmoon May 21, 2026
f2027f7
Implement Uint8Array to Base64 conversion functions
leoncoolmoon May 21, 2026
b7fff8f
Comment out document.title assignment
leoncoolmoon May 21, 2026
76b715d
Update README for version 3.0 features and instructions
leoncoolmoon May 21, 2026
50e6121
Update index.html
leoncoolmoon May 22, 2026
34394b3
Rename PgUp and PgDn to PageUp and PageDown
leoncoolmoon May 22, 2026
ccb497d
Update CACHE_NAME to version 3
leoncoolmoon May 22, 2026
87b56f0
Rename PageUp/PageDown to PgUp/PgDn
leoncoolmoon May 22, 2026
0d9de7f
Fix formatting and alignment in keyinput.js
leoncoolmoon May 22, 2026
760b581
Update CACHE_NAME to new version
leoncoolmoon May 22, 2026
a6dcbf5
Change saveFlashToStorage to saveAppState
leoncoolmoon May 22, 2026
3dd24be
Update cache name to version 3.1.1
leoncoolmoon May 22, 2026
1871cb2
fix small bugs
leoncoolmoon May 23, 2026
9e7be0c
fix small bugs
leoncoolmoon May 25, 2026
812ab85
fix
leoncoolmoon May 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
*.log
verify/
.temp/
verify_ui.py
45 changes: 39 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,43 @@
jswqx
=====
# js版文曲星nc1020模拟器 v3.0

文曲星模拟器 (NC1020)
## 网页版文曲星nc1020[模拟器](https://leoncoolmoon.github.io/jswqx/) <br>

orginal: http://bbs.emsky.net/viewthread.php?tid=33474
基于 JavaScript 的文曲星 NC1020 模拟器,从原基础上修改增加了现代化的图形界面。

demo: http://hackwaly.com/jswqx/
![screenshot](./nc1020.png)

![感谢@fouber提供的演示图片](http://ww4.sinaimg.cn/large/6767ed9agw1evhjy1jivig20c109rk4t.gif)
### 🌟 3.0 版本新特性
- **自动同步时间**: 模拟器启动及从后台切回前台时,自动同步系统真实时间与日期。
- **PWA 增强**: 完善的 Service Worker 缓存机制,支持离线使用,可作为独立应用安装。
- **UI 细节优化**: 进一步优化的界面响应速度与显示效果。

### 🚀 功能特点
- **高度还原的 UI**: 精心设计的硬件外壳界面,支持硬件精度的 LCD 指示器(三角标)。
- **移动端优化**: 自适应布局,支持触摸屏操作,横屏模式自动优化。
- **持久化存储**: 自动保存整个机器状态(含 RAM/NOR Flash/CPU 寄存器)到浏览器 `localStorage`,确保进度永不丢失。
- **多主题支持**: 内置深色和浅色模式,并可随系统自动切换。
- **全屏模式**: 支持全屏体验,在桌面端可单独全屏 LCD 显示区域。
- **高性能**: 优化的 6502 CPU 仿真和 LCD 渲染。

### 📜 历史与致谢
- **Original**: http://bbs.emsky.net/viewthread.php?tid=33474
- **2018.09.11** Dr.Quest 优化版:压缩 ROM 到 10M ZIP 文件,添加了手机触摸屏支持。
- **2023.12.24** leoncoolmoon 修改了 UI,增加 Ctrl 为跳出键。
- **2026.05.17** leoncoolmoon 修复了 Flash 存储,可以在浏览器内永久化保存。
- **2026.05.19** 升级为 PWA,支持离线访问,移除对本地 Python 服务器的依赖。
- **2026.05.21** 升级为 3.0 版本,支持自动同步时间,全面优化存储与 PWA 逻辑。

### 📖 使用说明
1. 直接在支持现代 Web 标准的浏览器中打开 `index.html` 即可。
2. 建议通过 Web 服务器访问(如 GitHub Pages)以获得完整的 PWA 离线体验。
3. **快捷键说明**:
- **F1-F12**: 对应机器功能键
- **Enter**: 确认 / 执行
- **Esc / Ctrl**: 跳出 / 退出
- **方向键**: 移动光标
- **字母 A-Z**: 拼音/英文字符输入
- **数字 1-9**: 数字输入
- **空格**: 等号 (=)
- **退格**: F2 键

目前已在 Chrome 和 iOS Safari 上进行过完美测试。
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
Binary file added favicon.ico
Binary file not shown.
Binary file added icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading