mirror of
https://github.com/RyuKojiro/apple1.git
synced 2024-06-10 11:29:32 +00:00
Use the currentFileName to make assembler output nicer
git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@39 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
parent
37a0afeabb
commit
b10c5b5d49
|
@ -60,6 +60,8 @@ static const char *prompt() {
|
|||
|
||||
int main(int argc, const char * argv[])
|
||||
{
|
||||
currentFileName = "apple1";
|
||||
|
||||
cpu = v6502_createCPU();
|
||||
cpu->memory = v6502_createMemory(v6502_memoryStartCeiling + 1);
|
||||
|
||||
|
@ -84,7 +86,7 @@ int main(int argc, const char * argv[])
|
|||
History *hist = history_init();
|
||||
history(hist, &ev, H_SETSIZE, 100);
|
||||
|
||||
EditLine *el = el_init("apple1", stdin, stdout, stderr);
|
||||
EditLine *el = el_init(currentFileName, stdin, stdout, stderr);
|
||||
el_set(el, EL_PROMPT, &prompt);
|
||||
el_set(el, EL_SIGNAL, SIGWINCH);
|
||||
el_set(el, EL_EDITOR, "emacs");
|
||||
|
|
Loading…
Reference in New Issue
Block a user