Merge lp:~ok2/retro-language/lisp into lp:retro-language

Proposed by OK2
Status: Merged
Merged at revision: 19
Proposed branch: lp:~ok2/retro-language/lisp
Merge into: lp:retro-language
Diff against target: 27 lines (+8/-2)
1 file modified
vm/complete/lisp/ngaro.lisp (+8/-2)
To merge this branch: bzr merge lp:~ok2/retro-language/lisp
Reviewer Review Type Date Requested Status
OK2 (community) Approve
Review via email: mp+88126@code.launchpad.net

Description of the change

Support of -13 and -14 in Lisp VM.

To post a comment you must log in.
lp:~ok2/retro-language/lisp updated
14. By crc <crc@questor>

add tools for setting terminal modes, and image conversion

15. By crc <crc@questor>

fix a typo preventing building the c implementation

16. By crc <crc@questor>

add a bswap32 implementation to image conversion code

17. By crc <crc@questor>

fix segfault in image conversion tool

18. By crc <crc@questor>

minor updates to my notes

19. By crc <crc@questor>

bits per cell and endian queries for lisp implementation

Revision history for this message
OK2 (ok2) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'vm/complete/lisp/ngaro.lisp'
--- vm/complete/lisp/ngaro.lisp 2012-01-10 07:32:01 +0000
+++ vm/complete/lisp/ngaro.lisp 2012-01-10 21:50:28 +0000
@@ -13,7 +13,9 @@
13(defparameter *ports-depth* 12)13(defparameter *ports-depth* 12)
14(defparameter *files-depth* 1024)14(defparameter *files-depth* 1024)
1515
16(deftype cell () '(signed-byte 32))16(defconstant +cell-size+ 32)
17
18(deftype cell () `(signed-byte ,+cell-size+))
17#+(or big-endian ecl)19#+(or big-endian ecl)
18(setf *image-file* (concatenate 'string *image-file* "BE"))20(setf *image-file* (concatenate 'string *image-file* "BE"))
1921
@@ -245,7 +247,11 @@
245 finally (setf (aref *image* (1+ d)) 0)))247 finally (setf (aref *image* (1+ d)) 0)))
246 (drop 2))248 (drop 2))
247 ((-11) (setf (aref *ports* 5) 80))249 ((-11) (setf (aref *ports* 5) 80))
248 ((-12) (setf (aref *ports* 5) 25))))))250 ((-12) (setf (aref *ports* 5) 25))
251 ((-13) (setf (aref *ports* 5) +cell-size+))
252 ((-14) (setf (aref *ports* 5)
253 #+big-endian 1
254 #-big-endian 0))))))
249255
250(defun ngaro ()256(defun ngaro ()
251 (console-prepare)257 (console-prepare)

Subscribers

People subscribed via source and target branches