Deutsch English Français Italiano |
<cc69a9248204cfbee63d2d2a317e52fa@www.novabbs.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: mitchalsup@aol.com (MitchAlsup1) Newsgroups: comp.arch Subject: Re: Byte Addressability And Beyond Date: Sun, 5 May 2024 01:49:52 +0000 Organization: Rocksolid Light Message-ID: <cc69a9248204cfbee63d2d2a317e52fa@www.novabbs.org> References: <v0s17o$2okf4$2@dont-email.me> <v0uihh$3e0vg$5@dont-email.me> <9ef6b3ccf22295ffa50de9ec20623d92@www.novabbs.org> <v11u92$cghm$1@dont-email.me> <v13b6l$2uft$1@gal.iecc.com> <v16jem$1fjrg$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; logging-data="112285"; mail-complaints-to="usenet@i2pn2.org"; posting-account="65wTazMNTleAJDh/pRqmKE7ADni/0wesT78+pyiDW8A"; User-Agent: Rocksolid Light X-Rslight-Posting-User: ac58ceb75ea22753186dae54d967fed894c3dce8 X-Spam-Checker-Version: SpamAssassin 4.0.0 X-Rslight-Site: $2y$10$pDnU.zDVUm19VZK3XohG5OeDXRNkFzaVVGl3ALHfucksQobDscTVK Bytes: 2263 Lines: 47 Lawrence D'Oliveiro wrote: > On Fri, 3 May 2024 18:42:29 -0000 (UTC), John Levine wrote: >>>> Lawrence D'Oliveiro wrote: >>>> >>>>> move.l a, b >>>>> move.b b, c >> >> Here's a concrete example on S/360. >> >> L R,100 >> STH R,200 >> >> That does a four byte load of location 100 into a register, and then a >> two byte halfword store into 200. The load gets bytes 100 through 103 >> with 100 going into the high byte of the register. The store puts its >> values into bytes 200 and 201. Since it's the low half of the register, >> the new contents of 200 and 201 are the old contents of 102 and 103. > So using the same register name to address a halfword gives you the low > half of the register, not the high half? > Whereas using the same memory address to address a halfword gives you the > high half of the word at that location, not the low half? Concrete example:: say location 100:103 contain 0xDEADBEAF LD R,100 R contains 0xDEADBEAF STH R,200 Location 200:201 contain 0XBEAF Whereas:: LH R,100 R contains 0xDEAD And nobody who understands BE would even question this functionality.