diff options
| author | Uri Shaked | 2020-03-22 21:12:03 +0200 |
|---|---|---|
| committer | GitHub | 2020-03-22 21:12:03 +0200 |
| commit | b3dc0329a8a7bfb8350ddc71719d4348dd4ed66c (patch) | |
| tree | e85d52944ce76ac604e276f25859a26d38a0afd0 /src/cpu/cpu.spec.ts | |
| parent | Merge pull request #25 from LironHazan/AVR8JS-24-editor-user-history (diff) | |
| parent | refactor: added peripherals and cpu feature folders (diff) | |
| download | avr8js-b3dc0329a8a7bfb8350ddc71719d4348dd4ed66c.tar.gz avr8js-b3dc0329a8a7bfb8350ddc71719d4348dd4ed66c.tar.bz2 avr8js-b3dc0329a8a7bfb8350ddc71719d4348dd4ed66c.zip | |
Merge pull request #22 from LironHazan/AVR8JS-21-restructure-project
refactor: add peripherals and cpu feature folders
Diffstat (limited to 'src/cpu/cpu.spec.ts')
| -rw-r--r-- | src/cpu/cpu.spec.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu/cpu.spec.ts b/src/cpu/cpu.spec.ts new file mode 100644 index 0000000..92df7ee --- /dev/null +++ b/src/cpu/cpu.spec.ts @@ -0,0 +1,8 @@ +import { CPU } from './cpu'; + +describe('cpu', () => { + it('should set initial value of SP to the last address of internal SRAM', () => { + const cpu = new CPU(new Uint16Array(1024), 0x1000); + expect(cpu.SP).toEqual(0x10ff); + }); +}); |
