From 87988b2e5fdbeb580e2065a8c6dca0a747bb1656 Mon Sep 17 00:00:00 2001 From: Ilya Portnov Date: Sat, 18 Jun 2011 23:01:39 +0600 Subject: [PATCH] Fix some docs. --- JVM/Assembler.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/JVM/Assembler.hs b/JVM/Assembler.hs index cc886ae..a3162c0 100644 --- a/JVM/Assembler.hs +++ b/JVM/Assembler.hs @@ -273,7 +273,7 @@ data Instruction = | JSR_W Word32 -- ^ 201 deriving (Eq, Show) --- ^ JVM array type (primitive types) +-- | JVM array type (primitive types) data ArrayType = T_BOOLEAN -- ^ 4 | T_CHAR -- ^ 5 @@ -285,14 +285,14 @@ data ArrayType = | T_LONG -- ^ 11 deriving (Eq, Show, Enum) --- ^ Parse opcode with immediate constant +-- | Parse opcode with immediate constant imm :: Word8 -- ^ Base opcode -> (IMM -> Instruction) -- ^ Instruction constructor -> Word8 -- ^ Opcode to parse -> GetState s Instruction imm base constr x = return $ constr $ toEnum $ fromIntegral (x-base) --- ^ Put opcode with immediate constant +-- | Put opcode with immediate constant putImm :: Word8 -- ^ Base opcode -> IMM -- ^ Constant to add to opcode -> PutState Integer () @@ -326,7 +326,7 @@ instance BinaryState Integer ArrayType where put t = putByte (atype2byte t) --- ^ Put opcode with one argument +-- | Put opcode with one argument put1 :: (BinaryState Integer a) => Word8 -- ^ Opcode -> a -- ^ First argument -- 2.25.1