大家好,我是前软件工程师(MSC),刚刚加入PIC社区的原因如下:我一直与Ralph Baer建立了第一个家庭视频游戏控制台(Brown Box)。在2003,拉尔夫用PIC18F48复制了Brown Boxes的复制品来复制老的行为。基于晶体管的硬件可以像1968一样玩游戏。与此同时,更强大的PIC出来了,视频移到了HD。由于担心那些有价值的棕色盒子复制品的未来,我把代码扔掉,希望能模拟它,看看它是如何工作的,并改进一些方面。H作为播放器(桨)运动,并且生成HDMI视频以与现代屏幕更兼容。问题是,我不能访问源代码(虽然它可能是)并且必须处理二进制。第一次尝试,我用一个便宜的PIC K150板来读取18F445并尝试运行COD。E(如果这个想法绝对不能导致某些东西,我就买不起更昂贵的实验套件)。我的第一个问题是K150生成的HEX文件是否与现有软件兼容。如果是这样,我需要一个PIC模拟器,它允许两件事:1)模拟4×4开关矩阵(4输出PI)。ns,4个输入引脚)。这些开关最初启用/禁用硬件
电路,以形成特定的游戏:显示/隐藏播放器(桨),播放器与球交互,中央网启用/隐藏等)模拟525线NTSC视频输出,主要来自RA6和可能的2或3个其他引脚(不确定)哪个SOULD驱动一个彩色相位生成器,用来设置固定的背景颜色(如最初设计的)。是否有一个模拟器允许所有这些都使用我的十六进制文件?否则,你将如何尝试模拟代码?我考虑在原始板上运行代码时调试代码,但是这可以允许拆解、修改、组装和上传吗?因此,需要确保我的“K150”HEX文件可以用来将芯片返回到原来配置的情况下麻烦…谢谢,戴维
以上来自于百度翻译
以下为原文
Hello,
I'm a former software engineer (MSc) and just joined the PIC community for the following reason:
I have been in close touch with Ralph Baer who created the first home videogame console (the Brown Box).
In 2003 Ralph made replica Brown Boxes using a PIC18F458 to replicate the behavior of the old transistor-based hardware to play the games as they did in 1968.
In the mean
time, more powerful PIC came out and video moved to HD.
Being worried about the future of those valuable Brown Box replicas, I dumped the code in the hope to simulate it to see how it code works, and improve some aspects such as player (paddles) motion, and generate hdmi video to be more compatible with modern screens.
The problem is, I can't access the source code yet (although it may be possible) and have to deal with the binary.
For a first try, I used a cheap PIC K150 board to read the 18F458 and try running the code (I wouldn't afford a more expensive lab kit if the idea can definitely not lead to something).
My first question is whether the hex file generated by the K150 is compatible with existing software.
If so, I need a PIC a simulator which allows two things:
1) Simulate a 4 x 4 switch matrix (4 output pins, 4 input pins). Those switches originally enabled/disabled hardware circuits in order to form a specific game: display/hide a player (paddle), player vs ball interraction, central net enabled / hidden, etc.
2) Simulate a 525-line NTSC video output, mainly from RA6 and possibly 2 or 3 other pins (not sure) which should drive a color phase generator used to set a fixed background color (as originally designed).
Is there a simulator that allows all this using my hex file ? Else, how would you try to simulate the code ?
I thought about debuging the code while running on the original board, but can this allow disassembling, modifying, assembling and uploading ?
Hence the need to make sure my "K150" hex file can be used to put the chip back to original config in case of trouble...
Thanks,
David
0